Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2096  / 2 Years ago, mon, october 3, 2022, 6:52:49

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....


More From » files

 Answers
1

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

[#36743] Tuesday, October 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
unsmmoth

Total Points: 72
Total Questions: 113
Total Answers: 95

Location: Thailand
Member since Tue, Oct 6, 2020
4 Years ago
;