News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

smallest exe size

Started by airc, September 14, 2012, 01:20:54 PM

Previous topic - Next topic

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


#include <windows.h>

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



any idea

zabzonk

The GCC option is -nostartfiles

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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