[sldev] Linking Problem with llimagej2coj.lib

Phoenix phoenix at secondlife.com
Fri Mar 16 09:25:33 PDT 2007


I believe that '__imp__' from the ms linker means that it was trying  
to find the stub which calls into a dynamic library. I ran into this  
when upgrading to openjpeg 1.1.1, and was corrected by adding:


#define OBJ_STATIC

to llimagej2coj.cpp before including openjepg.h.




On 2007 Mar 16, at 05:20, Korbinian Zollner wrote:
> Hello,
>
> I got a compiling problem I can't solve. Everything's compiling  
> fine, but Linking is not working correctly. I always get the  
> following Build Output (System: Visual C++ 2005 Express Edition,  
> Microsoft Windows XP Professional)
>
> Linking...
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_image_destroy at 4 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl(class  
> LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_cio_close at 4 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl(class  
> LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_destroy_decompress at 4 referenced in  
> function "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl 
> (class LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_decode at 8 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl(class  
> LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_cio_open at 12 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl(class  
> LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_setup_decoder at 8 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl(class  
> LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_set_event_mgr at 12 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl(class  
> LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_create_decompress at 4 referenced in  
> function "protected: virtual int __thiscall LLImageJ2COJ::decodeImpl 
> (class LLImageJ2C &,class LLImageRaw &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_set_default_decoder_parameters at 4  
> referenced in function "protected: virtual int __thiscall  
> LLImageJ2COJ::decodeImpl(class LLImageJ2C &,class LLImageRaw  
> &,float,int,int)" (? 
> decodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@AAVLLImageRaw@@ MHH at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_destroy_compress at 4 referenced in  
> function "protected: virtual int __thiscall LLImageJ2COJ::encodeImpl 
> (class LLImageJ2C &,class LLImageRaw const &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__cio_tell at 4 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::encodeImpl(class  
> LLImageJ2C &,class LLImageRaw const &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_encode at 16 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::encodeImpl(class  
> LLImageJ2C &,class LLImageRaw const &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_setup_encoder at 12 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::encodeImpl(class  
> LLImageJ2C &,class LLImageRaw const &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_create_compress at 4 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::encodeImpl(class  
> LLImageJ2C &,class LLImageRaw const &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_image_create at 12 referenced in function  
> "protected: virtual int __thiscall LLImageJ2COJ::encodeImpl(class  
> LLImageJ2C &,class LLImageRaw const &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> llimagej2coj.lib(llimagej2coj.obj) : error LNK2019: unresolved  
> external symbol __imp__opj_set_default_encoder_parameters at 4  
> referenced in function "protected: virtual int __thiscall  
> LLImageJ2COJ::encodeImpl(class LLImageJ2C &,class LLImageRaw const  
> &,char const *,float)" (? 
> encodeImpl at LLImageJ2COJ@@MAEHAAVLLImageJ2C@@ABVLLImageRaw@@ PBDM at Z)
> ReleaseForDownload/SecondLife.exe : fatal error LNK1120: 16  
> unresolved externals
>
> I'm sorry to bother you with such a (most probably) trivial  
> problem, but I'm quite new to C++ and managed to other linking  
> errors. But I can't manage this one and would be very thankful for  
> some help.
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> https://lists.secondlife.com/cgi-bin/mailman/listinfo/sldev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070316/7c11a379/PGP.pgp


More information about the SLDev mailing list