SFML community forums

Help => General => Topic started by: FallingSky on October 10, 2007, 05:31:59 pm

Title: Problem with example code
Post by: FallingSky 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!
Title: Problem with example code
Post by: dabo 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?
Title: Problem with example code
Post by: FallingSky 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!
Title: Problem with example code
Post by: dabo 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.