Forums > Dev

C++ library inclusion problems

December 23, 2011 | 5:52 pm

Hello,
I’m trying to include the Boost library in a max/msp project.

In the cpp projects presents in the sdk or in the maxcpp5 example when i add this line:
#include

i have a errors of this type:
"declaration does not declare anything".

I must precise that the linking is ok, everything compile in projects not related to the MAX/MSP SDK.
Did someone already had to deal with this issue ?

Configuration:
OSX 10.6.7
XCode 3.2.6
MAX/MSP SDK 5.1.7.

Thx to everyone,
Julien.


December 24, 2011 | 1:22 pm

Solved

The "check" macro is defined in the MAX/MSP SDK and in the the boost::ublas library (conflict!).

"#undef check" must be added just before the inclusion of the boost::ublas header.

Julien.


Viewing 2 posts - 1 through 2 (of 2 total)