We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was trying to run makefile and I got an error that says;
gcc -std=c99 -Wall -Wextra -pedantic -Ofast -flto -march=native -lm -lSDL2 main.c -o littlewolf c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16' collect2.exe: error: ld returned 1 exit status make: *** [Makefile:12: all] Error 1
Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
@yektasarioglu: Add -lSDL2main to the command line, that's where WinMain lives in this setup.
-lSDL2main
WinMain
Sorry, something went wrong.
Include the definition of
#define SDL_MAIN_HANDLED
before importing the SDL library
No branches or pull requests
I was trying to run makefile and I got an error that says;
Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: