Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#750 Problem when compiling multibyte source code

OTHER
closed
nobody
gcc (462)
duplicate
Duplicate
2013-02-05
2005-03-30
SecCat
No

wchar_t *T = L"XXXXXXXXXX";

int main()
{
return 0;
}

g++ main.cpp -o main.exe

main.cpp:1:20: converting to execution character set:
Illegal byte sequence
make: *** [bugtest] Error 1

I've try it on Linux, no error

MinGW-3.2.0-rc-3, WindowsXP SP1

the wide char string "XXXXXXXXXX" consists of some
East Asia characters, which can not be displayed
correctly on this page. so, please check out the
attachment below.

Discussion

  • Danny Smith
    Danny Smith
    2005-03-31

    Logged In: YES
    user_id=11494

    See the info in cpp.info on -finput-charset and -fexec-charset.
    The online html version can be found at:
    http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Preprocessor-
    Options.html#Preprocessor-Options
    Danny

     
  • Earnie Boyd
    Earnie Boyd
    2013-02-05

    • labels: --> gcc
    • status: open --> closed
    • resolution: --> duplicate
    • category: --> Duplicate
    • milestone: --> OTHER