[Insight-users] error LNK2019: unresolved external symbol

Adrien Lapointe lapointe at cs.queensu.ca
Mon Jun 19 14:08:45 EDT 2006


Hi,

I'm trying to compile and link itk code with Matlab using the Microsoft
Visual C/C++ version 7.1 compiler. I am able to compile, but I get a
problem when it comes to linking. I compiled itk in release mode and the
paths are the good one for the libraries. Here is the error message I get:

itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol
_opj_image_destroy referenced in function "bool __cdecl
gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
(?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)


It is only going on when I try to create a writer.

Can anybody help me with this?


Adrien Lapointe



More information about the Insight-users mailing list