Im trying to make use of the IVI-foundation (instrument communication standardization group) standard "IVI-C" in a VS 2010 C++/CLI-project
In doing this I need to use a .lib-file (which is supplied with a hopefully proper .h-file with extern "C"-declarations).
The h-file is included properly (because I can use the stuff that is defined there), but the linker complains.
Error 1 error LNK2028: unresolved token (0A000012) "extern "C" long __stdcall _IviDCPwr_close(unsigned long)" (?_IviDCPwr_close@@$$J14YGJK@Z) referenced in function "private: void __clrcall BoxcarMainSupplyDropTest::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@Form1@BoxcarMainSupplyDropTest@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) Y:\Data\Projects\Testautomation\BananTest\BananSkalet\BoxcarMainSupplyDropTest\BoxcarMainSupplyDropTest.obj BoxcarMainSupplyDropTest
I have added the path of the .lib-file to Project-properties->VC++ Directories->Library Directories
If I do dumpbin /SYMBOLS on said lib i can find this line
018 00000000 UNDEF notype () External | _IviDCPwr_close@4
Any input on this appreciated!
You have added the path to the lib; have you added the lib itself?