Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

gives:

/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?

EDIT:

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

share|improve this question
add comment

2 Answers

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 thanks.....now, how to show gcc where those files are? –  user2413 Jul 19 '12 at 13:48
1  
@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 W. Jul 19 '12 at 13:51
add comment

this did the trick:

IPPROOT=/opt/intel/ipp
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
add comment

Your Answer

 
discard

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.