A
A
AlexF2017-02-05 19:36:19
Programming
AlexF, 2017-02-05 19:36:19

How to build a project with SFML C++?

Hello. I was engaged in Olympiad programming and decided to open a new area for myself. I wrote a couple of console applications and the functionality was not enough. I decided to try SFML, wrote a simple toy and ran into a problem: How to build a project into an exe file, or into a folder so that I can copy it to any computer and run it without any problems. If you take an exe-file, it says that there are no DLL files on the computer ( sfml-xxx-2.dll and libgcc_s_sjlj-1.dll ). When copying them to the folder with this exe'shnik gives an error: The entry point to the procedure _gxx_personality_sj0 was not found in the library sfml-xxx-2.dll .
Thanks in advance
Software:
Code::Blocks 16.01
SFML 2.4.1

P.S.: In textxxx - system , window , graphics

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-02-05
@AleexF

Download Dependency Walker and see what files you need to run in it.
Either you link one version, and throw a DLL from another, this also happens, judging by an error.
Or link statically so that everything is linked into the executable and does not require any dlls.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question