I think TCC hasn't implemented this.

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of
> James Russell Moore
> Sent: Saturday, July 05, 2014 9:24 PM
> To: [email protected]
> 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.



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

Reply via email to