Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

icc cannot find header file

$
0
0

Hello all,

I am new with Intel's C++ Compiler and probably this is a noob question that's been asked before. I am having trouble building my code in Xcode (v5.1.1) using ICC (ICC XE 15.0), which builds fine with LLVM Compiler. When I try to build my project using ICC, I get a load of "catastrophic error: cannot open source file "my_header_file.h"". Now with Xcode I clearly tell what the working directory is because when I created the project file, this was required because LLVM couldn't find the header files either, but once it knew about the working directory it just looked for all the folders in which my source code is and it found the header files.

Strangely enough, if I put the absolute path of the header files instead of "my_header_file.h", ICC finds it and doesn't complain. So what I don't understand is how to tell ICC about the working directory through Xcode. Typically this is done by going in Edit Scheme > Options > Working Directory and tick the "Use custom working directory", but it seems that when I use ICC that information doesn't get through, somehow. I configure ICC in the Build Rules by setting Process to "C++ source files" and Using to "ICC Intel C++ Compiler XE 15.0" but that doesn't help.

So my question is : is there some special variable or parameter that I need to fill in so that ICC can understand what the working directory is ? I use Xcode 5.1.1, ICC XE 15.0 and OS X version is 10.9.4.

Thanks in advance for your time,


Viewing all articles
Browse latest Browse all 1616

Trending Articles



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