LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using import library generated by VS 2010 in Application built with LabWindows 2012, I get "Undefined symbol" link error

I have built an import library (.lib) using VS 2010 and I have added the library file to my LabWindows application (LabWindows 2012) 

This is the prototype of the function in the .lib library:

extern void test();

 

When I call the "test" function in my LabWindows application, I get a link error:

 "Undefined symbol '-test' reference in "Main.c"

 

When I dump the .lib library, I can find the symbol _test in the library:

 

197 00000000 SECT5C notype ()    External     | _test

 

I have gone through many discussion threads and NI pages and I can't figure out why I get the link error.  Any help is much appreciated.

0 Kudos
Message 1 of 2
(2,292 Views)

Have you seen this article?

 

Why Does Importing a DLL in LabWindows/CVI Project Throw an Undefined Symbol Error?
http://digital.ni.com/public.nsf/allkb/862567530005F09C862566200066DEF8

0 Kudos
Message 2 of 2
(2,266 Views)