Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

vc++ - dll

hello,
i got the following error messages under visual studio 6:
main.obj : error LNK2001: unresolved external symbol __imp__imgClose@8
main.obj : error LNK2001: unresolved external symbol __imp__imgPlot@36
main.obj : error LNK2001: unresolved external symbol __imp__imgSnap@8
main.obj : error LNK2001: unresolved external symbol __imp__imgSessionOpen@8
main.obj : error LNK2001: unresolved external symbol __imp__imgInterfaceOpen@8

ni imaq vision is installed...a lot of dll from .../SYSTEM32 are included as well as imaq.lib

how can i fix this problem?

best regards,
malte
0 Kudos
Message 1 of 2
(3,261 Views)
So the header is included correct, but the linker can not find where these functions are resolved. This can have only two reasons: You haven´t added the correct lib to your project, or you haven´t added the paths, where the .dll, .lib and .h to the include-paths of your project. Adding the dlls directly in your project does not help, and is not needed (only static libraries (lib) can be linked into an exe, dlls always reside outside the exe)!
0 Kudos
Message 2 of 2
(3,250 Views)