Skip to content

alternative crt startup headers for size-sensitive executable built by mingw

License

Notifications You must be signed in to change notification settings

myfreeer/win-startup-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

win-startup-headers

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+ for commandlinetoargva.h and examples/hello_win.c
  • MIT or LGPL 2.1+ for anything else in this repo

Examples

Check examples folder for examples.

Credits

About

alternative crt startup headers for size-sensitive executable built by mingw

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages