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
conflict with mac header file
Moderator: Moderator Team
-
- OFFIS DICOM Team
- Posts: 1445
- Joined: Tue, 2004-11-02, 17:22
- Location: Oldenburg, Germany
- Contact:
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.
Who is online
Users browsing this forum: No registered users and 1 guest