On Sat, Jul 05, 2014 at 10:09:34PM +0800, YX Hao wrote:
> > Is is expected or is there something wrong? Would it be possible to make a
> > modification to enable wmain() to be an entry point as well as main()?
> 
> Maybe you can take a look at:
> win32\lib\crt1.c

In crt1.c declare main and wmain as weak.
In _start call __getmainargs/main if main and __wgetmainargs/wmain
if !main.

I wonder if this works when linking to static libraries like libfl
(from GNU flex) that contain a main function.

  Daniel

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to