Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - souwanttocaude

Pages: [1]
1
General / Binding to C++ (Eclipse CDT - Mac os X)
« on: May 04, 2018, 05:28:11 pm »
Morning,

First thing, I am new to SFML
Second, after running a basic example from the tutorial I got this linker error:
ld: library not found for -l/usr/local/lib/libsfml-graphics.2.4.1.dylib
clang: error: linker command failed with exit code 1 (use -v to see invocation)

invoking the compiler here:
g++ -L/usr/local/lib/ -o "graphSFMLInit"  ./src/graphSFMLInit.o   -l/usr/local/lib/libsfml-graphics.2.4.1.dylib -l/usr/local/lib/libsfml-window.2.4.1.dylib -l/usr/local/lib/libsfml-audio.2.4.1.dylib -l/usr/local/lib/libsfml-network.2.4.1.dylib -l/usr/local/lib/libsfml-system.2.4.1.dylib

I told the linker where to find those libs by settings :
Project Properties->C/C++ Build->Settings->Tool Settings->MacOS X C++ Linker->Libraries :
/usr/local/lib/libsfml-graphics.2.4.1.dylib
/usr/local/lib/libsfml-window.2.4.1.dylib
/usr/local/lib/libsfml-audio.2.4.1.dylib
/usr/local/lib/libsfml-network.2.4.1.dylib
/usr/local/lib/libsfml-system.2.4.1.dylib

Image attached

Pages: [1]
anything