Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
12 Views

v11.1 problem

why the following code fire warning
unsigned short a = L"";
in v11.0, I can use the multibyte character
0 Kudos
3 Replies
Highlighted
12 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
Highlighted
Beginner
12 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
Highlighted
12 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