[Top][All Lists]

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

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

From: James Russell Moore
Subject: [Tinycc-devel] Building Unicode applications with TCC in Windows.
Date: Sat, 5 Jul 2014 15:23:56 +0200

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()?

Attached to this email is a small test case.

Thanks for your time anyway.

Attachment: test.c
Description: Text Data

reply via email to

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