Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Choice of gcc - MacOS

Thomas_G_3
Beginner
123 Views

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.
Best

 

0 Kudos
0 Replies
Reply