LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CIN code and linking to external libraries

I am writing CIN code to encapsulate access to some external shared libraries on both windows and solaris platforms.

following the LV manuals for external code to build my first CIN was a success.

most of the problems are all linking problems, most propably becuz i missed something in the .lvm file. the situation am facins is as follows:

1. my CIN .c file need to include other external .h files, say (external.h), i tried the following in the .lvm

CINCLUDES = -Ic:\external\lib

but didnot work, ofcourse when i hardcode the path of the .h file the CIN source file it works.

2. i also need to link to an external library file, say libExternal.lib. here i could not find any clue on were to go. i tried to use cinlibr
aries = -Ic:\external\lib\libExternal.lib but i got the following error:

NMAKE : fatal error U1077: 'c:\cintools\lvsbutil' : return code '0x2' Stop.

i know that there should be a way to specify the additional libraries folder (for example -Ic:\external\lib) then use the library name as a an additional linker option by specifying its name (libExternal.lib). but seems that my makefiles knowledge isnot good enough to help me through this.. 🙂

so... any clue on how to handle these issues?

best regards,
mutaz
0 Kudos
Message 1 of 1
(2,658 Views)