Ok, so whatever that is, its a bug in libmingw32
Report bugs to mingw folks :)
I tried
gcc -o scriptedmain scriptedmain.c -s -Wl,-subsystem,console -nostdl +ib
Which avoid libmingw32 but this fails with
undefined reference to `___main' undefined reference to `_printf' undefined reference to `_printf'
Naturally -e ___main doesn't help anything
$ gcc -o scriptedmain scriptedmain.c -s -Wl,-subsystem,console -nost +dlib -e ___main c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: +warning: cannot find entry symbol ___main; defaul ing to 00401000
So however you're supposed to work it, ask the mingw folks
In reply to Re^5: (OT) How can I do unless(caller) { main; } in C using GCC in Windows?
by Anonymous Monk
in thread (OT) How can I do unless(caller) { main; } in C using GCC in Windows?
by mcandre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |