09-28-2017 12:11 PM
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.
09-29-2017 02:43 PM
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