Code::Blocks

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

Code: [Select]
#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