| View previous topic :: View next topic |
| Author |
Message |
santosh
Joined: 31 Jul 2007 Posts: 59 Location: Bangalore (India)
|
Posted: Tue, 2008-05-06, 06:41 Post subject: Building With Python |
|
|
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 |
|
 |
Marco Eichelberg OFFIS DICOM Team

Joined: 02 Nov 2004 Posts: 1156 Location: Oldenburg, Germany
|
Posted: Tue, 2008-05-06, 09:02 Post subject: |
|
|
| 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 |
|
 |
|