I am using CLion 2016.1.1 on Ubuntu (16.04)
When I compile my project, the CMake output shows:
/opt/clion/bin/cmake/bin/cmake --build
/home/glapworth/.CLion2016.1/system/cmake/generated/project_name-f43e0982/f43e0982/Debug --target all -- -j 8
[ 33%] Linking C executable
/home/glapworth/src/project/project_name/bin/project_name
However, when I execute:
/opt/clion/bin/cmake/bin/cmake --build /home/glapworth/.CLion2016.1/system/cmake/generated/project_name-f43e0982/f43e0982/Debug --target all -- -j 8
I can see the compiler error:
...
CMakeFiles/project.dir/src/main.c.o: In function `main':
/home/glapworth/src/project/project_name/src/main.c:22: undefined reference to `curl_global_init'
...
How can I get CLion to show the compiler errors or warnings?
cilon
not show compile error, then this is a bug inclion
– fghjset(CMAKE_VERBOSE_MAKEFILE ON)
I still don't see the error. The compiler invocation is/usr/bin/gcc -Werror -Wall -g -o CMakeFiles/project.dir/src/main.c.o -c /home/glapworth/src/project/project/src/main.c
which is correct. When running the same command from a terminal, I can clearly see the compiler errors. It looks like STDERR is being redirected away from the Messages tab in CLion :( – glapworth