1
General / Re: Binding to C++ (Eclipse CDT - Mac os X)
« on: May 07, 2018, 11:55:34 pm »Usually the approach with linking libraries is to point the -L flag to the library directory and then only specify the library name like -lsfml-graphicsIt applies as well to macOS and dylib/framework (with the later, use the -F and -framework flags, but it's the same).
However I'm unfamiliar with macOS and its dylib.
You were right. I changed the command line to invoke the compiler with this:
g++ -std=c++1y -I/Library/Frameworks/sfml-graphics.framework -I/Library/Frameworks/sfml-window.framework -I/Library/Frameworks/sfml-audio.framework -I/Library/Frameworks/sfml-network.framework -I/Library/Frameworks/sfml-system.framework -I/Library/Frameworks/SFML.framework -O0 -g3 -Wall -c -fmessage-length=0 -Wno-attributes -MMD -MP -MF"src/graphSFMLInit.d" -MT"src/graphSFMLInit.o" -o "src/graphSFMLInit.o" "../src/graphSFMLInit.cpp"
Eclipse CDT is able to find SFML frameworks and now I moved on to a new problem! -sf- is an undefined symbol
Undefined symbols for architecture x86_64:
"sf::CircleShape::CircleShape(float, unsigned long)", referenced from: