conflict with mac header file

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
markm72homeruns
Posts: 19
Joined: Fri, 2005-09-30, 16:28

conflict with mac header file

#1 Post by markm72homeruns »

How do I get around this error:

I am compiling a carbon project with xcode on the Mac. The header AssertMacros.h defines a macro called verify() which conflicts with dcmtk's verify function for some reason.

Is the only way out of this to #undef the macro?

Thanks

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1445
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

Unless you can make sure that the files including DCMTK headers and the files using AssertMacros.h are mutually exclusive, there is probably no other way than to #undef the macro. Calling a macro "verify()" in lower case is right away stupid - there are certainly thousands of libraries that have some public method, function or object called "verify", and all of those would conflict with the macro.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest