Code::Blocks Forums

User forums => Help => Topic started by: airc on September 14, 2012, 01:20:54 PM

Title: smallest exe size
Post by: airc on September 14, 2012, 01:20:54 PM
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
Title: Re: smallest exe size
Post by: zabzonk on September 14, 2012, 01:32:44 PM
The GCC option is -nostartfiles
Title: Re: smallest exe size
Post by: oBFusCATed on September 14, 2012, 01:54:19 PM
Here you go: http://gcc.gnu.org/onlinedocs/gcc/Option-Index.html
Title: Re: smallest exe size
Post by: airc on September 14, 2012, 02:49:59 PM
thanks it works :D

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