SFML community forums
General => General discussions => Topic started by: klj613 on January 16, 2011, 09:00:26 pm
-
I have downloaded SFML 1.6 and I am following this tutorial.. http://www.sfml-dev.org/tutorials/1.6/start-vc.php.
I copied *.lib files to CP/lib and the include/SFML to CP/include (on MS Visual Studio 2010 Professional). Which this should make SFML available to all projects?
I also setup the Linker>Input>Additional Dependancies and C/C++>Preprocessor>Preprocessor Definations
When I try to compile my program it won't compile due to errors. Also the sf:: has a red line under it which I assume indicates it is not available.
Please note I am new to Game Development all together but I know several technologies relating to web development (PHP, etc)
Thanks in advance for any support
-klj613
-
You should not copy the files into the Visual Studio installation directory. Just specify the SFML paths (include and lib) in your project or in a property sheet that is used by your project. What's "CP"?
And what errors do you get?
-
You should not copy the files into the Visual Studio installation directory. Just specify the SFML paths (include and lib) in your project or in a property sheet that is used by your project. What's "CP"?
And what errors do you get?
I meant to type VC not CP. Sorry.
I followed the instructions on http://www.sfml-dev.org/tutorials/1.6/start-vc.php and I do not know what/where-is project "property sheet" to add libs? I did what the tutorial told me to do.
The error dump is http://www.nomorepasting.com/getpaste.php?pasteid=35344
-
Property sheets are available since VS 2010. They replace the global directories of VC 2008 in Tools -> Options -> Projects and Solutions. You'll find out more about them on MSDN (or Google).
But as I said, don't copy the SFML files into the VC directory. Rather specify the include and lib paths in your Visual Studio project or in a separate property sheet.