LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   a problem when compiling intel c++ professional package for linux (https://www.linuxquestions.org/questions/linux-software-2/a-problem-when-compiling-intel-c-professional-package-for-linux-723435/)

huangmi0212 05-03-2009 10:07 PM

a problem when compiling intel c++ professional package for linux
 
Hi, guys,

I confront a problem when I compile intel C++ professional package for linux.

The problem is:

icc intrin_time_sample.c
/opt/intel/Compiler/11.0/083/bin/intel64/mcpcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
compilation aborted for intrin_time_sample.c (code 127)

I think maybe I need to install libstdc++.so.5
so I use 'yum install compat-libstdc++-33.i386'
But after that, the problem still exists!

so Why?

Thanks,
Ming

paulsm4 05-03-2009 10:28 PM

Hi -

I suspect that the "libstdc++" your Intel C++ compiler needs is part of the Intel compiler package.

A couple of suggestions:
1. Search for libstdc++ in your Intel directory:
Quote:

find /opt/intel/Compiler -name "libstdc++*" -print 2>/dev/null
2. Be sure to add the Intel libraries to you $LD_LIBRARY_PATH:
Quote:

EXAMPLE:
export LD_LIBRARY_PATH="/opt/intel/Compiler/11.0/069/lib/ia32:$LD_LIBRARY_PATH"
3. Add "-L/opt/intel/Compiler/11.0/069/lib/ia32" (or the equivalent) to your icc link command line

http://software.intel.com/en-us/arti...shared-object/
http://laksmono.com/2008/11/10/how-t...ntu-linux-810/

'Hope that helps .. PSM


All times are GMT -5. The time now is 02:12 PM.