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: YX Hao
Subject: Re: [Tinycc-devel] Building Unicode applications with TCC in Windows.
Date: Sat, 5 Jul 2014 22:09:34 +0800

I think TCC hasn't implemented this.

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf Of
> James Russell Moore
> Sent: Saturday, July 05, 2014 9:24 PM
> To: address@hidden
> Subject: [Tinycc-devel] Building Unicode applications with TCC in Windows.
> 
> Hello, I have a small utility which makes use of wide characters in Windows.
> It's written using _TCHAR though so it can be built with multibyte characters
> as well.
> 
> The main() function header is written as follows:
> 
> int _tmain(int argc, _TCHAR* argv[])
> 
> Translates to "main" in a multibyte build and "wmain" in a Unicode build, but
> TCC seems to expect a main() function instead of a wmain() one so it can't
> produce Unicode builds (I tried with a mob build as well).
> 
> 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
win32\lib\wincrt1.c

> 
> Attached to this email is a small test case.
> 
> Thanks for your time anyway.





reply via email to

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