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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - easys

Pages: [1]
1
General / Re: Compiled SFML code runs nothing
« on: October 04, 2023, 04:36:37 am »
I tried running the github template but I got this error
build] collect2.exe: error: ld returned 1 exit status[build] make.exe[2]: *** [bin/sfml-graphics-d-2.dll] Error 1[build] make.exe[1]: *** [_deps/sfml-build/src/SFML/Graphics/CMakeFiles/sfml-graphics.dir/all] Error 2[build] make.exe: *** [all] Error 2

2
General / Compiled SFML code runs nothing
« on: October 03, 2023, 09:12:56 am »
I'm new to sfml and was trying to get the example code to run in windows on visual studio code. I have a project with just a main cpp file with the example code in it and all the dlls. I ran g++ -c main.cpp -I(Path to the include folder) and then g++ main.o -o main -L(Path to the lib folder) -lsfml-graphics -lsfml-window -lsfml-system. This all runs fine without error but when I go to run the executable nothing happens it just immediately exits. If I add a print statement to the start of the code still nothing. My compiler is mingw-64 and it has worked fine and I haven't had an issue so I'm not sure where to look.

Pages: [1]
anything