Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

v11.1 problem

churunmin
Beginner
394 Views
why the following code fire warning
unsigned short a = L"";
in v11.0, I can use the multibyte character
0 Kudos
3 Replies
Brandon_H_Intel
Employee
394 Views
Quoting - churunmin
why the following code fire warning
unsigned short a = L"";
in v11.0, I can use the multibyte character

I can reproduce a "warning #26: too many characters in a character constant". Is that the one you are seeing?
0 Kudos
churunmin
Beginner
394 Views

I can reproduce a "warning #26: too many characters in a character constant". Is that the one you are seeing?

yes, why cannot I use non-ascii character?

gcc has a option "-finput-charset=GBK", it seems icc11.1 does not has one.
is there a way to specify charset for icc11.1?

icc11.0 defaults to system default charset
0 Kudos
Alexander_W_Intel
394 Views
I think this is now solved.

[bash]icc -V
Intel C Intel 64 Compiler XE for applications running on Intel 64, Version 12.0.4.191 Build 20110427
Copyright (C) 1985-2011 Intel Corporation.  All rights reserved.

cat bug.cpp
const wchar_t *a = L"";

icc -c bug.cpp
[/bash]

I've got even no error if I use Compiler 11.1 Update 7.

Alex
0 Kudos
Reply