Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SFML2.0] Problem with a basic program..  (Read 2750 times)

0 Members and 1 Guest are viewing this topic.

Zeneus

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
[SFML2.0] Problem with a basic program..
« 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10826
    • View Profile
    • development blog
    • Email
AW: Re: [SFML2.0] Problem with a basic program..
« Reply #1 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 ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Zeneus

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: [SFML2.0] Problem with a basic program..
« Reply #2 on: June 25, 2013, 12:39:42 pm »
That's the problem my friend..  :P
I haven't added any library -lsystem-graphics...  ??? . . .

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10826
    • View Profile
    • development blog
    • Email
AW: [SFML2.0] Problem with a basic program..
« Reply #3 on: June 25, 2013, 12:58:16 pm »
Have you read and followed the tutorial? What OS are you using? What IDE? Etc... ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Zeneus

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: [SFML2.0] Problem with a basic program..
« Reply #4 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  :-\
« Last Edit: June 25, 2013, 07:43:53 pm by Zeneus »

Zeneus

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: [SFML2.0] Problem with a basic program..
« Reply #5 on: June 27, 2013, 12:56:18 pm »
bump..???

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10826
    • View Profile
    • development blog
    • Email
Re: [SFML2.0] Problem with a basic program..
« Reply #6 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Zeneus

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • Email
Re: [SFML2.0] Problem with a basic program..
« Reply #7 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..

 

anything