Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Created February 4, 2013 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcockhren/4710557 to your computer and use it in GitHub Desktop.
Save jcockhren/4710557 to your computer and use it in GitHub Desktop.
Complains about global a weak symbol
crun --sdk macosx10.8 clang++ -o bin/lib/macosx/gameplay.ndll -fpic -fPIC -dynamiclib -m32 -framework Cocoa -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fvisibility=hidden -framework OpenGL -framework OpenAL -framework Quartz -framework IOKit -L../../../Gameplay/external-deps/bullet/lib/macosx -L../../../Gameplay/external-deps/libpng/lib/macosx -L../../../Gameplay/external-deps/lua/lib/macosx -L../../../Gameplay/external-deps/oggvorbis/lib/macosx -framework OpenGL -L. @all_objs -lbullet -lpng -llua -logg -lvorbis -lvorbisenc -lvorbisfile -lz -lgameplay
ld: bad codegen, pointer diff in __Z13ValueToObjectP6_valueRPN8gameplay7AIAgent8ListenerE to global weak symbol __ZTIN8gameplay9Transform8ListenerE for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Called from ? line 1
Called from BuildTool.hx line 1438
Called from BuildTool.hx line 667
Called from a C function
Called from BuildTool.hx line 702
Called from BuildTool.hx line 836
Called from BuildTool.hx line 933
Called from BuildTool.hx line 333
Uncaught exception - Error : 256 - build cancelled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment