SFML community forums

Bindings - other languages => C => Topic started by: newone on March 06, 2018, 08:51:30 pm

Title: Setting up C-SFML
Post by: newone on March 06, 2018, 08:51:30 pm
Hi everyone,

please, could anyone help me with setting up C-SFML, i'm so lost at this moment. I'm getting so many errors and don't know what to do else. I have done exactly what's written here https://www.sfml-dev.org/tutorials/2.4/start-vc.php but this didn't work so. 

I'm using this  http://transit.iut2.upmf-grenoble.fr/doc/libcsfml-doc/html/  as sample code.

Snippings: https://onenote.com/webapp/pages?token=3FvosmfHf8KakYoF3nlHPg1rDdcElIaXlZ18fm1YSwyuM-YVMSikAxhKJIukz9A94XzfbIN8nQuj6cZ2rw1O3K11WkXwonvV0&id=636559620760271730


Thanks in advance.

Jacob
Title: Re: Setting up C-SFML
Post by: FRex on March 07, 2018, 12:45:05 am
Did you change your directories layout? The CSFML has gcc and msvc subdirectories in lib, the .lib files aren't directly in the lib directory.
Title: Re: Setting up C-SFML
Post by: newone on March 07, 2018, 01:15:44 pm
I'm using these libraries. File addresses don't match because i'm using different computer atm. So, libraries have to be directly linked? Thanks for reply.

Is it ok use Visual studio 2017?

https://onenote.com/webapp/pages?token=CivzHVc1Nj0dQI4PImBrhr1dXeqOLhdT2FKHT_tyqfyBPiU1XERqUJg6MZTcL2ytnDFNYJ22yt45BD5PST6zBIaYU0__08uT0&id=636560215634108955
Title: Re: Setting up C-SFML
Post by: FRex on March 07, 2018, 05:10:52 pm
It works for me in VS 2015. It should work in 2017 exactly the same.

Are you sure all the lib files are in C:\Users\Rekt\Desktop\CSFML\lib (because that's what you have set as your 'Additional Library Directories'). Maybe you are missing \msvc at the end of that path?