Skip to content

Instantly share code, notes, and snippets.

@olsonjeffery
Created March 14, 2014 19:52
Show Gist options
  • Save olsonjeffery/9555484 to your computer and use it in GitHub Desktop.
Save olsonjeffery/9555484 to your computer and use it in GitHub Desktop.
build error wrt -lSDL2
^~~~~~~~~
error: linking with `cc` failed: exit code: 1
note: cc arguments: '-m64' '-L/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib' '-o' 'client' 'client.o' '-nodefaultlibs' '-Lp2d/lib' '-Llib' '-L/Users/jeff/src/dungeongame/.rust' '-L/Users/jeff/src/dungeongame' '-L/Users/jeff/src/.rust' '-L/Users/jeff/.rust' '-framework' 'SDL2' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libstd-966edb7e-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libgreen-80d9e76a-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/librustuv-09e0b925-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libnative-51515d1a-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libsync-7bf3a0fc-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libserialize-d01a48ca-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libcollections-6cc47867-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libgetopts-f2d8d0e7-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libterm-2516c234-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libextra-64ade3d6-0.10-pre.rlib' '/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib/libuuid-a2b3c17f-0.10-pre.rlib' 'p2d/lib/libp2d-ebfaa9c7-0.1.rlib' 'p2d/lib/libsdl2-16412a49-0.0.1.rlib' 'p2d/lib/libp2dux-cb447514-0.1.rlib' '-lpthread' '-lSystem' '-lSDL2' '-Wl,-rpath,@loader_path/../../lib/rustlib/x86_64-apple-darwin/lib' '-Wl,-rpath,/Users/jeff/lib/rustlib/x86_64-apple-darwin/lib' '-lmorestack' '-lcompiler-rt'
note: ld: library not found for -lSDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
make: *** [client] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment