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

Author Topic: Sfml to exe  (Read 3159 times)

0 Members and 1 Guest are viewing this topic.

Teknol

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Sfml to exe
« on: September 21, 2017, 10:27:57 am »
I'm trying to make my cbp file into a exe, so that as long as you have the dlls, images and the audios, you can run it.

Can someone please tell me how to do that??
I'm using Code::Blocks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Sfml to exe
« Reply #1 on: September 21, 2017, 11:08:32 am »
You compile your code. See the official tutorials on how to setup Code::Blocks.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Teknol

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Re: Sfml to exe
« Reply #2 on: September 21, 2017, 02:01:08 pm »
Everything is correct, before when using cpp, clicking build will build a exe file for me but when using sfml it only creates it for the debug and it doesn't work as it can't find the dlls. I am still able to run it but I want to share it for people who can't open cpp file or doesn't have code blocks, visual studios cpp etc


Sent from my iPhone using Tapatalk

Gleade

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Sfml to exe
« Reply #3 on: September 22, 2017, 12:31:31 am »
The DLL's (if not compiled statically) are required to be in the same directory as the executable (*.exe).