03-04-2009 04:17 AM
I've crated a lib files with Visual Studio, then i've copied this file in my CVI project folder and i've created an h files with the functions definition.
When i try to complile my project i've the error Undefined symbol '_Fattoriale' referenced in "Pumpe.c".
How i can do to use this lib file?
Thanks
03-04-2009 10:28 AM
Did you remember to use extern "C" in Visual Studio, for the name of the functions? This will prevent the C++ compiler from altering the function name ('name decoration', or 'name mangling') it uses in the resulting library. The CVI compiler (ANSI C) does not understand this process.
JR
03-04-2009 12:20 PM
It's not enough just to put the lib in the same directory. You must also add the .lib file to your project.
Mert A.
National Instruments