6/28/2023 0 Comments Gcc for mac capitan→ Reply In English In Russia To use gcc instead of clang within CLion, you can go to CLion -> Preferences -> Build, Execution, Deployment -> Toolchains -> C++ Compiler, and select the gcc compiler you downloaded c++ - How can I make CMake use GCC instead of Clang on Mac To use gcc instead of clang within CLion, you can go to CLion -> Preferences -> Build, Execution, Deployment -> Toolchains -> C++ Compiler, and select the gcc compiler you downloaded. DCMAKE_C_COMPILER=/usr/bin/ gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ one should use. (Verify this by commenting all the alias in your bash profile, restart the terminal and type gcc -version.) So, instead of. I guess the case in OP was run on a macOS, and the real problem is /usr/bin/ gcc and /usr/bin/g++ by default are clang and clang++.
0 Comments
Leave a Reply. |