DICOM @ OFFIS Forum Index DICOM @ OFFIS
Discussion Forum for OFFIS DICOM Tools
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Building With Python

 
Post new topic   Reply to topic    DICOM @ OFFIS Forum Index -> DCMTK - General
View previous topic :: View next topic  
Author Message
santosh



Joined: 31 Jul 2007
Posts: 59
Location: Bangalore (India)

PostPosted: Tue, 2008-05-06, 06:41    Post subject: Building With Python Reply with quote

Hi All,

I am using dcmtk api's and python functions in my project, while building the project it gives a redefination error, as ssize_t is defined in two files i.e cfwin32.h and pyconfig.h

"error 2371: 'ssize_t' : redefinition; different basic types"

cfwin32.h defines it as follows

/* Define `ssize_t' to `long' if <sys/types.h> does not define. */
#define HAVE_NO_TYPEDEF_SSIZE_T 1
#ifdef HAVE_NO_TYPEDEF_SSIZE_T
//typedef long ssize_t;
#endif

and pyconfig.h defines it as follows

/* Define like size_t, omitting the "unsigned" */
#ifdef MS_WIN64
typedef __int64 ssize_t;
#else
typedef _W64 int ssize_t;
#endif
#define HAVE_SSIZE_T 1

how can i overcome this problem.
Thanks
_________________
Santosh S B
Back to top
View user's profile Send private message Send e-mail
Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team


Joined: 02 Nov 2004
Posts: 1156
Location: Oldenburg, Germany

PostPosted: Tue, 2008-05-06, 09:02    Post subject: Reply with quote

I would suggest that you change the typedef in cfwin32.h to equal that in pyconfig.h. That should not cause problems in DCMTK (where ssize_t is only used as a return type for recv() and send()) and should solve your problem.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DICOM @ OFFIS Forum Index -> DCMTK - General All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.21-7 (Debian) © 2001, 2005 phpBB Group