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

Author Topic: SFML for pure C. Howto needed  (Read 12088 times)

0 Members and 1 Guest are viewing this topic.

c0d3r9

  • Newbie
  • *
  • Posts: 12
    • View Profile
SFML for pure C. Howto needed
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML for pure C. Howto needed
« Reply #1 on: March 19, 2018, 08:54:21 am »
There's a download page for 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

c0d3r9

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: SFML for pure C. Howto needed
« Reply #2 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFML for pure C. Howto needed
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/