[Qt-creator] DEFINES += _UNICODE

Duane duane.hebert at group-upc.com
Tue Mar 6 19:04:52 CET 2012


On 03/06/2012 12:56 PM, Alexander Rukletsov wrote:
> Hi Duane,
>
> it seems that your project is not cross-platform. I suppose that TCHAR 
> is defined only in windows headers and is not a part of standard C++. 
> Think of it like as a language extension provided by visual studio 
> compiler.
>

Unfortunately, the library vendor (FieldTalk) has used TCHAR to support 
cross platform utilization.
So far I've been able to get around this with a couple of #ifndef WIN32 
port.toUtf8() #endif.
I was just surprised.  I have to treat the port name differently anyway 
- COM1 or /dev/ttyS0  etc.



More information about the Qt-creator mailing list