win-startup-headers
May 14, 2018 ยท View on GitHub
alternative crt startup headers for size-sensitive executable built by mingw
Usage
Console Applications
Console Applications use main entry point for ansi and wmain entry point for unicode.
Include main.h for int main(argc,argv) or include mainv.h for int main(),
and append -nostartfiles to your compiler parameters.
Windows Applications
Windows Applications use WinMain entry point for ansi and wWinMain entry point for unicode.
Include winmain.h and append -nostartfiles -mwindows -lshlwapi to your compiler parameters.
Note
commandlinetoargva.h is NOT required for a unicode compilation.
License
LGPL 2.1+forcommandlinetoargva.handexamples/hello_win.cMITorLGPL 2.1+for anything else in this repo
Examples
Check examples folder for examples.