Compiling for OSX Mavericks

  • minecraft-physics
    6th Feb 2014 Member 0 Permalink

    When I compile it says that it is an "undeclared identifier," I really don't know.

    Edited 2 times by minecraft-physics. Last: 7th Feb 2014
  • wolfy1339
    7th Feb 2014 Member 0 Permalink

    @minecraft-physics (View Post)

    Could you post the whole output from the console/terminal. 

    It would help others understand your problem better.

  • minecraft-physics
    7th Feb 2014 Member 0 Permalink

     


    ...various compilation messages


    g++ -o build/src/cat/LuaWindow.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/Users/alaricsanders/Desktop/Programming/SDL-1.2.15/include src/cat/LuaWindow.cpp 
    g++ -o build/src/cat/TPTSTypes.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/Users/alaricsanders/Desktop/Programming/SDL-1.2.15/include src/cat/TPTSTypes.cpp 
    g++ -o build/src/cat/TPTScriptInterface.o -c -w -std=c++98 -fkeep-inline-functions -O3 -ftree-vectorize -funsafe-math-optimizations -ffast-math -fomit-frame-pointer -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/Lua.framework/Headers -m32 -msse2 -D_GNU_SOURCE -DUSE_STDINT -D_POSIX_C_SOURCE=200112L -DUSE_SDL -DMACOSX -DSTABLE -DX86 -DX86_SSE2 -Ibuild/src -Isrc -Ibuild/data -Idata -Ibuild/generated -Igenerated -I/Users/alaricsanders/Desktop/Programming/SDL-1.2.15/include src/cat/TPTScriptInterface.cpp 
    src/cat/TPTScriptInterface.cpp:277:10: error: use of undeclared identifier         'strcasecmp'                                  if (!strcasecmp(((StringType)value).Valu...                                      ^ 
    1 error generated. 
    scons: *** [build/src/cat/TPTScriptInterface.o] Error 1  
    scons: building terminated because of errors.
    Edited 7 times by minecraft-physics. Last: 11th Apr 2014