Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 21991

How to change compiler on Clion from clang to gcc on MacOS?

$
0
0

The only compiler that works on my CLion is the clang one which is detected by default in toolchains. I need to use gcc (my college class grades using the gcc compiler so I want to avoid any unexpected issues) and have it installed through homebrew. In my terminal I can do g++ and gcc commands and it uses the right compiler, but I don't know how to change it in CLion. I must be doing something wrong with the location of it or the CMake settings. Any guidance would be appreciated and thank you. Let me know if there's any additional questions I can answer, my explanation may be insufficient as I am new to the world of CS. I see previous questions on how to switch compilers between gcc and clang, but not specifically on CLion.


Viewing all articles
Browse latest Browse all 21991

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>