Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to compile a program (gcc, using some functions from intel's ipp library). It is my first use of ipp, so I think I might be doing some not very clever mistake. Anyhow:

g++ -o inteltrial inteltrial.cpp -I/home/me/Desktop/work/p1/geqw4/vi3/out/sp/ccode/eigen -I/opt/intel/composerxe/ipp/include -L/opt/intel/composerxe/ipp/lib/intel64/ -libipps_l.a -libipps_t.a


/usr/bin/ld: cannot find -libipps_l.a
/usr/bin/ld: cannot find -libipps_t.a

now, -libipps_l.a -libipps_t.a are in /opt/intel/ipp/lib/intel64

How to point gccto the right location?


This post seems to be related, but I can't find on the internet how to add a line to

share|improve this question

What the error you see is saying is that the program ld cannot find those files. The /usr/bin/ld: part identifies what is throwing the error, not where the checks for the files are occurring.

share|improve this answer
ok, how to show gcc where those files are? – user2413 Jul 19 '12 at 13:48
@user2413 I am not familiar with how to fix the gcc compiler's options, so don't mark my answer as the correct answer. I would recommend that you amend your question to say "How can I get the system to find the files?", and just leave this answer as a "This was helpful to explain the error" answer. – Thomas Ward Jul 19 '12 at 13:51
up vote 1 down vote accepted

this did the trick:

export IPPROOT
cd /home/me/Desktop/work/p1/geqw4/vi3/out/sp/ccode
icpc -O3 -o inteltrial inteltrial.cpp -I/home/me/Desktop/work/p1/geqw4/vi3/out/sp/ccode/eigen -I$IPPROOT/include -L$IPPROOT/lib/intel64 -lipps -lippcore
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.