"assert has not been declared in this area" in MySQL ++

I am compiling a project in Xcode where MySQL ++ is enabled and associated with it. For some reason, I keep getting the following compiler error:

'assert has not been declared in this area

derived from cpool.h, a header file that is part of MySQL ++. Does anyone know why this is caused?

EDIT: For reference, MySQL ++ was installed through Macports.

+5
source share
3 answers

, "assert.h" . , assert undefined - .

: , assert.h , , , , , .. undefined.

cpool.h , , assert.h , , cpool.h. , cpool.h .

+6

, "assert.h", < assert.h > .

, gstreamer Mac OSX. , gstreamer include directory (/Library/Frameworks/GStreamer.framework/Headers) "assert.h", assert.h. -I/Library/Frameworks/GStreamer.frameworks/Headers , , "#include < assert.h > ", gstreamer. , .

+2

++ cassert .

#include <cassert>
+2
source

All Articles