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 inWindows.


From: YX Hao
Subject: Re: [Tinycc-devel] Building Unicode applications with TCC inWindows.
Date: Sat, 5 Jul 2014 22:52:22 +0800

Something more, on windows use a Unicode console environment is not convenient. 
It's not the default. You may need change the setting times, up and down.
You really want to pass any Unicode argv? Usually there are functions for wide 
chars can be used.

> 
> I think TCC hasn't implemented this.
> 
> > James Russell Moore
> >
> > 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]