Matt Casey
December 16, 2004, 20:46:52
Greetings,
I'm trying to take my code that seeminly worked with the 1.41 version of the IC Imaging Classes and move it to version 2.1. When I try to link, I get the following error (Visual Studio .NET 2003, C++):
CameraImage.lib(isCamera.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl DShowLib::InitLibrary(char const *)" (__imp_?InitLibrary@DShowLib@@YA_NPBD@Z) referenced in function "private: void __thiscall ISCamera::InitializeCamera(class ImageParameters &,float,bool)" (?InitializeCamera@ISCamera@@AAEXAAVImageParameter s@@M_N@Z)
The relevant code is just:
if( ! DShowLib::InitLibrary( "XYZ" ) )
{
THROW_EXCEPTION( "Unable to initialized DShow Library.\n");
}
This is the only linking error I get when I try to build the project, and I'm able to build the example projects without any problem. Is there something else I should be doing? I looked at the samples and can't find the difference.
An unrelated question: is there an easy way I can make it so that whenever I create a new project that uses IC, I don't need to copy TIS_UDSHL06_vc71.dll to the directory containing the executable?
Many thanks,
Matt
I'm trying to take my code that seeminly worked with the 1.41 version of the IC Imaging Classes and move it to version 2.1. When I try to link, I get the following error (Visual Studio .NET 2003, C++):
CameraImage.lib(isCamera.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl DShowLib::InitLibrary(char const *)" (__imp_?InitLibrary@DShowLib@@YA_NPBD@Z) referenced in function "private: void __thiscall ISCamera::InitializeCamera(class ImageParameters &,float,bool)" (?InitializeCamera@ISCamera@@AAEXAAVImageParameter s@@M_N@Z)
The relevant code is just:
if( ! DShowLib::InitLibrary( "XYZ" ) )
{
THROW_EXCEPTION( "Unable to initialized DShow Library.\n");
}
This is the only linking error I get when I try to build the project, and I'm able to build the example projects without any problem. Is there something else I should be doing? I looked at the samples and can't find the difference.
An unrelated question: is there an easy way I can make it so that whenever I create a new project that uses IC, I don't need to copy TIS_UDSHL06_vc71.dll to the directory containing the executable?
Many thanks,
Matt