tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Building Unicode applications with TCC in Windows.


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] Building Unicode applications with TCC in Windows.
Date: Sat, 5 Jul 2014 16:32:40 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]