1
General / Re: SFML g++ undefined reference to 'WinMain@16'
« on: February 06, 2019, 09:34:09 am »
OK I kinda fixed it.
I linked lmingw32 such that now my command looks like that
One more problem though: I couldn't find my GUImeOfLife.exe but I fixed it by swapping "GUImeOfLife.exe" and "main.o" like that
Now I've just got one last problem: my program crashes and won't display anything else than a command prompt and the infamous "GUImeOfLife.exe stopped working" even though I have my DLLs in the same folder as my program.
Any thoughts ?
I linked lmingw32 such that now my command looks like that
g++ -LC:\lib\SFML\lib -o GUImeOfLife.exe -o main.o -lmingw32 -lsfml-system -lsfml-window -lsfml-graphics -lsfml-main
and TADAAAAA no error anymore.One more problem though: I couldn't find my GUImeOfLife.exe but I fixed it by swapping "GUImeOfLife.exe" and "main.o" like that
g++ -LC:\lib\SFML\lib -o main.o -o GUImeOfLife.exe -lmingw32 -lsfml-system -lsfml-window -lsfml-graphics -lsfml-main
putting that here so eventual other people finding this won't do this same mistake by blindly copying Now I've just got one last problem: my program crashes and won't display anything else than a command prompt and the infamous "GUImeOfLife.exe stopped working" even though I have my DLLs in the same folder as my program.
Any thoughts ?