SBYTE redefinition in vs2005

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
abchjb
Posts: 6
Joined: Fri, 2005-12-23, 15:47

SBYTE redefinition in vs2005

#1 Post by abchjb »

today, I upgrade my application from vs2003 to vs 2005, but I meet a problem:
the type SBYTE define in dctypes.h also define in the vs2005's oledb.h.
in dctypes.h:
typedef Sint8 SBYTE;
in oledb.h:
typedef signed char SBYTE;

so error:
error C2371: 'SBYTE' : redefinition; different basic types
d:\microsoft visual studio 8\vc\platformsdk\include\oledb.h(798) : see declaration of 'SBYTE'

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

As far as I can see, the definition of BYTE and SBYTE in dctypes.h is not used any longer anywhere in the toolkit. So, you should try to remove the two lines from the header file and re-compile.

nm_zjf
Posts: 1
Joined: Wed, 2005-09-28, 03:15

Re: SBYTE redefinition in vs2005

#3 Post by nm_zjf »

I also find this error in VS 2008,but I have not solved this problem.I have tried to remove the definition of the SBYTE,but i have not succeed.It will make more error.

Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest