SFML community forums

Help => General => Topic started by: user123 on July 22, 2014, 04:17:21 pm

Title: Problems linking library
Post by: user123 on July 22, 2014, 04:17:21 pm
I am new to installing libraries, so I got a few problems.
1. I can't get "lib" and "include" folders together, I followed multiple tutorials but each timeI get different results...
2.  I followed this http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php
 and  this http://www.sfml-dev.org/tutorials/2.1/start-vc.php, but still the IDE does not recognise SFML syntax, it still displays curly red lines around the code...
Oh, I also followed this tutorial:
http://www.youtube.com/watch?v=VcPRJE6Rt0o
 
Here are screenshots
http://i.imgur.com/X73s1AD.png
http://i.imgur.com/mvsgtfe.png

What have I done wrong?
What is the proper way to do it?
I see millions of ways with different outcomes, I cannot find a good explaination anywhere.
Title: Re: Problems linking library
Post by: Strelok on July 22, 2014, 04:44:14 pm
You must build the INSTALL(as admin) project, not delete it for no reason. It should install SFML in something like %PROGRAMFILES%/SFML. After that you can either use CMake in your project to link sfml automatically or manually add the libraries and include folders in your vs project.
Title: Re: Problems linking library
Post by: Nexus on July 22, 2014, 04:47:50 pm
Don't follow arbitrary video tutorials. The official ones describe everything, are checked for errors by many people and up-to-date.