So i made a simple game in SFML on linux and now i want to make able to run in Win .
info :
- Ubuntu
- SFML installed under default path (command obtain in SFML website )
- a font is used by the game ( has to be embedded)
- compilation and execution commands as follows :
javascript:tx('code'){
g++ -c game.cpp
g++ game.o -o run -lsmfl-graphics -lsmfl-window -llsmfl-system
./run
};
runs perfectly in linux.
how do i get it to work as .exe in windows ? what is the linking here ' i guess static, since there are not .DLL in the folder)
Yes, it should be static.
Which compiler do you have there, MSVC or GCC? I consider to use MinGW/G++ with the same command, but instead of "run" there, rather use a *.exe output file.