When linking a project I am working on, the linker gives the following errors:
/usr/bin/ld: ../Includes and Libs/lib/libsfml21rca.a(SoundFile.o): undefined refer
The linker only runs one pass over the library files. So if you have something in Library A that needs something in Library B, you need to have g++ objects... -llibA -llibB
, if you use g++ objects... -llibB -llibA
it will fail in the manner you show.
So, in your case, put the -lsndfile
after "../Includes and Libs/lib/libsfml21rca.a"
.
(And whose idea was it to put spaces in a the "Includes and Libs" directory - not the best idea I've seen...)