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

Author Topic: [Solved] sprite/string - not able to auto-import!?  (Read 2845 times)

0 Members and 1 Guest are viewing this topic.

Caesium

  • Newbie
  • *
  • Posts: 3
    • ICQ Messenger - 292808800
    • MSN Messenger - spitti@hotmail.de
    • View Profile
[Solved] sprite/string - not able to auto-import!?
« on: July 05, 2008, 10:09:05 am »
hi there,

i'm trying to make my first steps with SFML right now. for now, i'm using dev-c++. it's new for me, 'cause i didn't program really much in c++ yet. however, unfortunately I got my first problems with compiling the pong-sample out of the samples folder of the SMFL SDK. I put all of the media I need into the right place, so this is not the point. I also linked the needed libs, anyway...



well, I tried some other samples and everything's working fine up to now except the things in the compiler-info above.

anyone wanna help me?
better would be: anyone's able to help me? :)

would be glad about any help, thanks in advance,
caesium

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Solved] sprite/string - not able to auto-import!?
« Reply #1 on: July 05, 2008, 11:05:00 am »
Read the tutorial ("how to start" --> Code::Blocks -- the compiler is the same as in Dev-C++) and find the paragraph talking about SFML_DYNAMIC ;)
Laurent Gomila - SFML developer

Caesium

  • Newbie
  • *
  • Posts: 3
    • ICQ Messenger - 292808800
    • MSN Messenger - spitti@hotmail.de
    • View Profile
[Solved] sprite/string - not able to auto-import!?
« Reply #2 on: July 05, 2008, 11:38:30 am »
thanks, but as the dev-c++ IDE is kinda.. different relating to the GUI I wasn't able to find the compiler settings area where I should have added this #define command.

could you explain me either where to put this definition exactly or another possibility to get along with this error (in case there is another one, of course)?

would be nice, thank you,
caesium

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Solved] sprite/string - not able to auto-import!?
« Reply #3 on: July 05, 2008, 12:07:18 pm »
It should be in your project's properties, under "parameters". Then in "C++ compiler" add -DSFML_DYNAMIC.
Laurent Gomila - SFML developer

Caesium

  • Newbie
  • *
  • Posts: 3
    • ICQ Messenger - 292808800
    • MSN Messenger - spitti@hotmail.de
    • View Profile
[Solved] sprite/string - not able to auto-import!?
« Reply #4 on: July 05, 2008, 01:13:31 pm »
worked fine. great thx!

caesium

 

anything