SFML community forums

Bindings - other languages => C => Topic started by: c0d3r9 on March 19, 2018, 08:47:16 am

Title: SFML for pure C. Howto needed
Post by: c0d3r9 on March 19, 2018, 08:47:16 am
I read here so much about msvc but i thought i could use it without c++.
What i have to do to run it with pure C.
Is it possible?
Build it myself? And how?
Title: Re: SFML for pure C. Howto needed
Post by: eXpl0it3r on March 19, 2018, 08:54:21 am
There's a download page for CSFML (https://www.sfml-dev.org/download/csfml/).

If you have to ask how to use CSFML, I wonder though, whether you shouldn't be spending more time learning C and your toolchain.
Title: Re: SFML for pure C. Howto needed
Post by: c0d3r9 on March 19, 2018, 08:58:47 am
I see that.
I donĀ“t like Visual Studio.
In wich way i have to build?
I have build sfml from source for c++ some month ago, and so i have to remember about the steps.
Are they different to that?
But if i do that the same way then its useable for c++
What are the steps for C?
Title: Re: SFML for pure C. Howto needed
Post by: eXpl0it3r on March 19, 2018, 09:21:07 am
Maybe try first and come back when you get stuck. There's no point in providing a detailed description when in the end you aren't even going to try it. ;)

You don't have to use Visual Studio, on Windows you can also use MinGW-w64 for SFML or CSFML.
Don't forget that in order to use CSFML, you'll have to also build SFML, as CSFML is just a C API wrapper around the C++ library.