Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Choice of gcc - MacOS


Dear all,

I am currently encountering problems of detecting the "right gcc" to pick up by my intel compiler.
I installed a gcc compiler alongside of the given clang compiler (by CommandLineTools).
I also created a symlink so that the command 'gcc' is linked to my custom gcc compiler.

However, I keep having includes problem since using icc, it keeps looking for clang includes instead of gcc ones. For example, it looks in the following folder: /Library/Developer/CommandLineTools/usr/include/c++/v1

How can I force it to run with my custom gcc (-gcc-name etc are not available on macOS)?

Thank you for you help.


0 Kudos
0 Replies