Hello !
I built my application with SFML statically linked on Windows. There were no problems during compilation.
But when I launch my application, my window does not appear. The only thing that appears is the Windows's terminal.
I worked on my project on Linux so when I had to build for Windows, I installed on my Windows computer a standalone version of the "make" command.
Here is the makefile :
CXXFLAGS = -DSFML_STATIC -std=c++14 -c -ISFML/include/
SFMLLIB = -LSFML/lib/ -lsfml-graphics-s -lsfml-window-s -lsfml-audio-s -lsfml-system-s -lopenal32 -lvorbisfile -lvorbisenc -lvorbis -logg -lFLAC -ljpeg -lfreetype -lgdi32 -lopengl32 -lwinmm
OBJECTS = main.o Snake.o Inputs.o FoodPoints.o Point.o Random.o SoundSystem.o TileBackground.o ScoreSystem.o Gui.o
CCXX = g++
all : $(OBJECTS)
$(CCXX) $(OBJECTS) $(SFMLLIB) -o snake
main.o : src/main.cpp
$(CCXX) $(CXXFLAGS) src/main.cpp
Snake.o : src/Snake.cpp
$(CCXX) $(CXXFLAGS) src/Snake.cpp
Inputs.o : src/Inputs.cpp
$(CCXX) $(CXXFLAGS) src/Inputs.cpp
FoodPoints.o : src/FoodPoints.cpp
$(CCXX) $(CXXFLAGS) src/FoodPoints.cpp
Point.o : src/Point.cpp
$(CCXX) $(CXXFLAGS) src/Point.cpp
Random.o : src/Random.cpp
$(CCXX) $(CXXFLAGS) src/Random.cpp
SoundSystem.o : src/SoundSystem.cpp
$(CCXX) $(CXXFLAGS) src/SoundSystem.cpp
TileBackground.o : src/TileBackground.cpp
$(CCXX) $(CXXFLAGS) src/TileBackground.cpp
ScoreSystem.o : src/ScoreSystem.cpp
$(CCXX) $(CXXFLAGS) src/ScoreSystem.cpp
Gui.o : src/Gui.cpp
$(CCXX) $(CXXFLAGS) src/Gui.cpp
clean :
rm snake *.o
Anyone knows what the problem is ? When I was linking SFML dynamically my window was showing as expected.
Thank you !