error messages in Message area have garbled?

 

 

���

 

How can I fix it? thanks

0
3 comments

Hello! What CLion version do you use? What compiler (name and version) do you use? How do the error messages look if you build this project with this compiler outside CLion?

1
Avatar
Permanently deleted user

@Anna Falevskaya

clion: stable release 2018.1.2

compiler version: g++

--- ~/Documents » g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/sh
are/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,
lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa
_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-un
ique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-styl
e=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-p
ie --enable-default-ssp
Thread model: posix
gcc version 8.1.0 (GCC)

 

A minimizer is sample: 

 

int main()
{
    itn a;
}

 

In Clion's Messages

Compiled with g++ in clion, the Messages output: 

/home/czxyl/CLionProjects/untitled14/main.cpp: In function ���int main()���:
/home/czxyl/CLionProjects/untitled14/main.cpp:3:5: error: ���itn��� was not declared in this scope
itn a;
^~~

 

Compiled with clang++ in clion, the Messages output: 

/home/czxyl/CLionProjects/untitled14/main.cpp:3:5: error: unknown type name 'itn'
itn a;
^
1 error generated.

 

 

So, in clion's  Messages, only compiled g++ will have garbled. clang++ doesn't have garbled

 

Outside Clion's Messages

 

Gcc/clang/g++/clang++ with clion's ternimal and other terminals all have no garbled. 

 

 

In a nutshell, only g++ and gcc in clion's Messages will appear garbled. 

 

 

 

 

 

0

Sorry for the late response. Is the issue still actual in the latest stable release (CLion 2018.2.4)? 

0

Please sign in to leave a comment.