[Dcmlib] GDCM in VTK using BCB

Luca Picello luca.picello at libero.it
Thu Jun 2 18:10:43 CEST 2005


Hello Mathieu,
thanks for quick answer!! I downloaded latest CVS
[ cvs -d:pserver:anonymous at cvs.creatis.insa-lyon.fr:2402/cvs/public co 
gdcm. ]

and after 1.0 version
[ cvs -d:pserver:anonymous at cvs.creatis.insa-lyon.fr:2402/cvs/public co 
-r Version1_0 gdcm. ]

In both I met the same problem.

Changes needed to love BCB (Borland C++ Builder 6, not free compiler) 
are in gdcmCommon.h I made:

// Broken plateform do not respect C99 and do not provide those typedef
#if defined(_MSC_VER)
typedef  signed char         int8_t;
typedef  signed short        int16_t;
typedef  signed int          int32_t;
typedef  unsigned char       uint8_t;
typedef  unsigned short      uint16_t;
typedef  unsigned int        uint32_t;
#define UINT32_MAX    (4294967295U)
#endif

#ifdef __BORLANDC__
  #include <stdint.h>
  #include <ctype.h>
  #include <stdlib.h>
#endif


but if I made it wrong please tell me.
Thanks,

Luca





Mathieu Malaterre wrote:

>Luca,
>
>  Could you include the version of gdcm you are using ? gdcm is being compiled AND run nightly with bcc32. As far as I know there is not a single line of code you need to change. Please use the latest gdcm 1.0 version.
>
>Thanks
>Mathieu
>Ps: look for a file called winbase.h the GetTickcount is defined here.
>
>
>  
>
>>*I would like to use Dcmlib in VTK, using Borland C++ Builder compiler.*
>>
>>*I adjusted some header files but I cannot make it run because:*
>>
>>*Z:\gdcm\src\gdcmUtil.cxx:*
>>
>>*Error E2316 Z:\gdcm\src\gdcmUtil.cxx 284: 'Util::GetTickCount()' is not 
>>a member of 'Util'*
>>
>>**** 1 errors in Compile ****
>>
>>*Searching for GetTickCount() in all directories I can't find it so I 
>>believe it is Windows GetTickCount() API function... or not?
>>
>>*
>>
>>*thanks for any help in advance,*
>>
>>*Picello Luca*
>>
>>*
>>*
>>
>>
>>    
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Dcmlib mailing list
>>Dcmlib at creatis.insa-lyon.fr
>>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>>    
>>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050602/a28d7d70/attachment.html>


More information about the Dcmlib mailing list