C++ library inclusion problems


    Dec 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.

    • Dec 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.