LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cygwin c

Hello,
 
I recently just posted this question below but was a little unclear with one thing.  In the extcode.h file there are a list of CINMgErr functions.  Supposedly one of these is CINRun, however it is not in my .h file.  The list of them is at the bottom of the .h file, and include Load, Save, Properties and a couple others.  I am absolutely sure however that CINRun is not in my file, which is what is causing my compiling problem.  Any suggestions?
 
I am using LabView 8.0 and was hoping to take advantage of the code interface node (CIN) during part of my program.  To get used to this I tried using one of the sample C codes in the LabView\examples\cins directory.  I was trying to compile the aequalb.c file with cygwin.  I keep getting an error however about the CIN MgErr CINRUN method, or function or whatever it is.  The error reads:  syntax error near unexpected token '('  'CINMgErr CINRUN(....)'.  What i noticed was that this function is not even in the extcode.h file (in LabView\cintools directory).  I have looked at other posts on this forum about people trying to use Visual C++ which was an alternative I was thinking about doing for creating the CIN.  The problem most other people seemed to have with that is that they had to alter the extcode.h file so that the CINMgErr functions read extern "C" CINMgErr CINRUN/CINLoad etc...  So is there something wrong with my file?  I haven't changed it at all.  Is it possible there is a different solution with version 8.0 than from previous versions?  Am I using an incompatible platform for compiling my C?  If so, does anybody know where i can get a FREE (key word here guys and gals...) compiler that will work with LabView?  THanks for any help you can offer.
 
tekky
0 Kudos
Message 1 of 2
(2,481 Views)
I have no idea why you can't create a CIN with this compiler but why are you trying? It's so much easier to create a DLL and call that with the Call Library Function Node. Any compiler (C, C++, VB, Fortran) that can create a DLL can then be used with LabVIEW.
0 Kudos
Message 2 of 2
(2,471 Views)