[Dcmlib] gdcm CVS Version doesn't compile on Windoz

Luca Picello luca.picello at libero.it
Fri Jan 27 00:53:22 CET 2006


Hello JP,
what compiler are you using? it seems M$ visual-studio... right?
what configuration? static/dll?

------------------
I had a try to latest cvs too, with borland c++ builder 2006 and there 
are some files which need to be modified:

gdcmRLEFramesInfo.cxx
gdcmPixelReadConvert.cxx
gdcmJpeg2000.cxx
gdcmJpeg.cxx
gdcmFileHelper.cxx
gdcmDocument.cxx
gdcmDocEntrySet.cxx
gdcmDicomDir.cxx

need:
#if defined(__BORLANDC__)
    #include <mem.h> // for memset
#endif

and gdcmDataEntry.cxx
need:

#if defined(__BORLANDC__)
  #include <mem.h> // for memcpy
  #include <stdlib.h> // for atof
  #include <ctype.h> // for isdigit
#endif

also some examples needs the same.
I wonder if I can get the write permission to gdcm repository to adjust 
it for BCB when needed.
thanks,
Luca





Jean-Pierre Roux wrote:
> Hi!
>
> I'm old to gdcm, but new to M$ Windows ..
> I tried to compile the CVS version of gdcm, and I get the following 
> link errors (I goes perfect on Linux)
>
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__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)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_cio_close referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_destroy_decompress referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_decode referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_cio_open referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_setup_decoder referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_set_event_mgr referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_create_decompress referenced in function "bool __cdecl 
> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> gdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external symbol 
> __imp__opj_set_default_decoder_parameters referenced in function "bool 
> __cdecl gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)" 
> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
> E:\gdcmbinWindoze\bin\Debug\FindTags.exe : fatal error LNK1120: 9 
> unresolved externals
>
> Any idea?
> Thx
>
> JP
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
> .
>




More information about the Dcmlib mailing list