Jump to content

Problem compiling in Mac 10.8


Recommended Posts

Hello I am getting some issues compiling some code in a Mac using Mac OSX 10.8.5.

I have modified the command line from the Makefile t use clang++ rather than g++. And this is the result:

 

/usr/bin/clang++ -DIGNORE_HDK_DEPRECATIONS -std=c++11 -mmacosx-version-min=10.8 -c -DVERSION=\"13.0.687\" -D_GNU_SOURCE -DMAKING_DSO -DMBSD -DMBSD_COCOA -DMBSD_INTEL -arch x86_64 -DAMD64 -fPIC -DSIZEOF_VOID_P=8 -DFBX_ENABLED=1 -DOPENCL_ENABLED=1 -DOPENVDB_ENABLED=1 -DSESI_LITTLE_ENDIAN -DENABLE_THREADS -DUSE_PTHREADS -D_REENTRANT -DNEED_SPECIALIZATION_STORAGE -DGCC3  -I/Library/Frameworks/Houdini.framework/Resources/toolkit/include -Wall -W -Wno-parentheses -Wno-sign-compare -Wno-uninitialized -Wunused -Wno-unused-parameter -Wno-deprecated -Wno-reorder -O2  -DMAKING_DSO -DUT_DSO_TAGINFO='"3262197cbf0248162fa92d8b523894b22741d6f1c36287fa6d9cd0561769ee812b972985db32267a5946daed23da230a4b8fa057efd0e95546162de86dff91b64ea845c28ce66394a3268d0847ba11fce917cff09fe39b68fc965e0d150fef40f45de44cf558"' SOP_MyCoolTool.cpp -o SOP_MyCoolTool.o
In file included from SOP_MyCoolTool.cpp:54:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/OP/OP_Director.h:31:
In file included from /Library/Frameworks/Houdini.framework/Resources/toolkit/include/OP/OP_OTLManager.h:26:
/Library/Frameworks/Houdini.framework/Resources/toolkit/include/OP/OP_OTLLibrary.h:90:41: error: invalid suffix on literal; C++11 requires a space between literal and identifier
      [-Wreserved-user-defined-literal]
#define OTL_MODULE_VEX_SECTION          "Module"OTL_VEX_SECTION_SUFFIX
                                                ^


/Library/Frameworks/Houdini.framework/Resources/toolkit/include/OP/OP_OTLLibrary.h:91:41: error: invalid suffix on literal; C++11 requires a space between literal and identifier
      [-Wreserved-user-defined-literal]
#define OTL_MODULE_VFL_SECTION          "Module"OTL_VFL_SECTION_SUFFIX
                                                ^


In file included from SOP_YAPS.cpp:62:
./YAPS_Util.h:51:16: warning: 'reflectVector' has C-linkage specified, but returns user-defined type 'UT_Vector3' (aka 'UT_Vector3T<float>') which is incompatible with C
      [-Wreturn-type-c-linkage]
    UT_Vector3 reflectVector (const UT_Vector3 &incident, const UT_Vector3 &normal);
               ^
SOP_YAPS.cpp:3189:9: warning: unused variable 'indent' [-Wunused-variable]
    int indent = 4; // This is temporary
        ^
2 warnings and 2 errors generated.
 
The code compiles correctly in Linux using gcc.
Using g++ in Mac get more warnings but the same two errors.
Any idea if I need to use a special flag for clang to compile this?
Thanks
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...