SFML community forums

Help => General => Topic started by: Zeneus on June 25, 2013, 10:40:51 am

Title: [SFML2.0] Problem with a basic program..
Post by: Zeneus on June 25, 2013, 10:40:51 am
Hey guys :) I've been off for a lot of time from the community due to school (-.-")..
But I'm back.. and I'm rewinding my SFML knowledge...
So, I tried to make a simple program working in the terminal/cmd, using some SFML Keyboard modules..
example: If you press Up-> prints "forward", down->"backwards" etc.. (without using any sfml window)
I made it all in a class file, but when i compile and run the program, i have the following error:

Quote
ld.exe||cannot find -lsystem-graphics|

any ideas?
Thanks in advance! ~Zeneus
Title: AW: Re: [SFML2.0] Problem with a basic program..
Post by: eXpl0it3r on June 25, 2013, 12:37:38 pm
Quote from: Zeneus
Quote
ld.exe||cannot find -lsystem-graphics|
Have you thought about what "cannot find" means? ::)
system-graphics is not a valid library name for SFML.
SFML has the libraries, sfml-system, sfml-graphics, sfml-audio, sfml-network ;)
Title: Re: [SFML2.0] Problem with a basic program..
Post by: Zeneus on June 25, 2013, 12:39:42 pm
That's the problem my friend..  :P
I haven't added any library -lsystem-graphics...  ??? . . .
Title: AW: [SFML2.0] Problem with a basic program..
Post by: eXpl0it3r on June 25, 2013, 12:58:16 pm
Have you read and followed the tutorial? What OS are you using? What IDE? Etc... ;)
Title: Re: [SFML2.0] Problem with a basic program..
Post by: Zeneus on June 25, 2013, 01:00:43 pm
Code::Blocks 12.11 w/ MinGW on Windows 8 x32
Using SFML2 self-built...
EDIT:: This happens with pre-build sfml2 also.. not only with mine :).. :o  :-\
Title: Re: [SFML2.0] Problem with a basic program..
Post by: Zeneus on June 27, 2013, 12:56:18 pm
bump..???
Title: Re: [SFML2.0] Problem with a basic program..
Post by: eXpl0it3r on June 27, 2013, 02:06:49 pm
My question still stands:
Have you read and followed the tutorial?

How are you linking things?
Also I don't get what you mean with your edit.
Title: Re: [SFML2.0] Problem with a basic program..
Post by: Zeneus on June 27, 2013, 05:24:48 pm
I'm always linking libraries dynamically.. (almost) never statically..
I meant that I checked if this still occurs when using the prebuild(downloaded) version, and a self-compiled one..