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

Author Topic: Problems linking library  (Read 1518 times)

0 Members and 1 Guest are viewing this topic.

user123

  • Newbie
  • *
  • Posts: 12
    • View Profile
Problems linking library
« 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:

 
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.

Strelok

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • GitHub
Re: Problems linking library
« Reply #1 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.
« Last Edit: July 22, 2014, 04:50:21 pm by Strelok »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Problems linking library
« Reply #2 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything