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

Author Topic: Problem with example code  (Read 6887 times)

0 Members and 2 Guests are viewing this topic.

FallingSky

  • Newbie
  • *
  • Posts: 5
    • View Profile
Problem with example code
« on: October 10, 2007, 05:31:59 pm »
Im using VC 2005 express trying to compile the example from http://sfml.sourceforge.net/tutorials/graphics-window.php but im not sure exactly what to link so im linking sfml-main.lib sfml-graphics.lib sfml-system.lib but it still gives me the error: fatal error C1075: end of file found before the left brace '{'  ...which its talking about right after int main.

Please help, Thanks!

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
Problem with example code
« Reply #1 on: October 10, 2007, 09:03:31 pm »
When I'm linking the following

 sfml-main-d.lib sfml-graphics-d.lib sfml-system-d.lib sfml-window-d.lib

...it works fine. But your error is not linker related. Are you sure you copied the entire code example?

FallingSky

  • Newbie
  • *
  • Posts: 5
    • View Profile
Problem with example code
« Reply #2 on: October 11, 2007, 05:27:33 pm »
Wow, im extremely sorry. Im new to using VS so I didnt understand that error at all, but you were right I forgot to copy and paste the last } in the code!

Sorry for the stupid question but thanks for the help!

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
Problem with example code
« Reply #3 on: October 11, 2007, 08:55:13 pm »
Quote from: "FallingSky"
Wow, im extremely sorry. Im new to using VS so I didnt understand that error at all, but you were right I forgot to copy and paste the last } in the code!

Sorry for the stupid question but thanks for the help!


There are no stupid questions.

 

anything