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

to exclude /user/include/c++/4.3 .. old include path and use intel's path

$
0
0

I am working on a cluster which has older version of intel compiler (11) and gcc (4.3).

I have installed a newer trial version of intel composer xe (with 14.0 compiler).  I have also installed gcc 4.9. Both the newer gcc and intel compilers are in my home directory (non-root)

I use C++11 in my codes, so obviously i use -std=c++11 flag for compiling. I provide -L  and -I flags to include intel's includes and libraries in my makefile

When I try to compile my code with icpc, The compiler looks in /user/include/c++/4.3/.... path. I tried to remove the path by setting C_INCLUDE_PATH and CPLUS_INCLUDE_PATH  to /home/aniket/intel/composerxe/include    but it still looks in the /usr/include/c++  path. Because of this, the old files in /user/include/c++/4.3/tr1_impl/ ... are included and not the latest ones.

How do I stop the compiler to look into these paths and see the new ones. Now instead of intel compiler i use gcc4.9, what changes do i need to make ?


Viewing all articles
Browse latest Browse all 1616

Trending Articles



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