When linking the project I'm working on, the linker gives the following errors:
/usr/bin/ld: ../Includes and Libs/lib/libsfml21rca.a(SoundFile.o): undefined reference to symbol ' sf_read_short@ @libsndfile.so.1.0' /usr/bin/ld: note: ' sf_read_short@ @libsndfile.so.1.0' is defined in DSO /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libsndfile.so so try adding it to the linker command line /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libsndfile.so: could not read symbols: Invalid operation
The point is that libsndfile.so is already linked before libsfml21rca.a, so I have no idea where the problem is.
I am using Code :: Blocks 10.05
Thanks for the help in advance.
EDIT:
Here's a link:
g ++ -L "Turns on and Libs / lib" -L "Turns on and Libs / lib / raknet3_731" -L "Turns on and Libs / lib / d3d_new / x86" -L "Turns on and Libs / lib / ogg" -L "Turns on and Libs / lib / sdl "-LBullet / lib -o (filename) ... (many object files) -lGLEW -lglfw -lGL -lGLU -lpthread -lopenal -ljpeg -lfreetype -lsndfile -lXrandr - lsfml-system -lsfml- window -lsfml-audio ../ Bullet / lib / LinearMath.lib ../ Bullet / lib / BulletCollision.lib ../ Bullet / lib / BulletDynamics.lib "../Includes and Libs / lib / raknet3_731 / RakNetLibStaticDebug.lib "" ../Includes and Libs / lib / libsfml21rca.a ".. /../../../../../home/msabol/Desktop/SFML/sfml2st/sfmlVideo/sfmlVideo/bin/Release /libsfmlVideo.a../../../../../../home/msabol/Desktop/SFML/sfmlVideo/bin/Release/libsfmlVideo.a
source share