User forums > Help

smallest exe size

(1/1)

airc:
hi

just confusing about -nodefaultlib and -nostartupfiles , i've used them with DEV-CPP without problem
but codeblocks says unrecognized option '-nostartupfiles'


this is the program


--- Code: ---#include <windows.h>

extern "C" void WinMainCRTStartup()
{
  MessageBox(NULL,"samll exe"," ",NULL);
}

--- End code ---


any idea

zabzonk:
The GCC option is -nostartfiles

oBFusCATed:
Here you go: http://gcc.gnu.org/onlinedocs/gcc/Option-Index.html

airc:
thanks it works :D

the only thing i missed in C::B (infact its mingw related ) is  adressing local variables with intel asm syntax

Navigation

[0] Message Index

Go to full version