Feb 17, 2013 at 9:44pm UTC
I have use GCC a lot in the past, and it's practically the only compiler I use.. However, the library I am using it with right now is giving me a lot of trouble... First of all, I compiler from the command line. Second, the library I am using is SFML 2.0. And lastly, here is what I pass to it:
MinGW\bin\g++ -o MyEXE MyProgram.cpp -lsfml-Graphics -lsfml-Window -lsfml-Network -lsfml-Audio -lsfml-System
As is, it gives me a ton of undefined errors, which I believe are linker errors... I have tried everything I could think of, but I can't seem to get it. Thank you for your help!
Feb 17, 2013 at 9:47pm UTC
It would very much help if you posted the errors, at least the first one.
Feb 17, 2013 at 10:26pm UTC
I think library files are in lower case:
MinGW\bin\g++ -o MyEXE MyProgram.cpp -lsfml-graphics -lsfml-window -lsfml-network -lsfml-audio -lsfml-system
Feb 17, 2013 at 10:53pm UTC
@Peter87 As for the errors, it's an undefined reference to a bunch of long, not worth typing things.
As for the lowercase, I'll try that.
Feb 17, 2013 at 11:55pm UTC
In that case, all I can say is that the linker can't find the definition of whatever it is that it is complaining about.