Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
6621 Discussions

compilation error: undefined reference to `ippmMul_tm_64f_P'

guang_c
Beginner
149 Views
Hello,

I am using Intel IPP on a 32-bit Linux machine. When I compiled my C++ code, I had the this error message:

"undefined reference to ippmMul_tm_64f_P"

My compiling command is as follows:


gcc -g
-I/home/etudiant/quality/src/vif/inc -I/opt/intel/ipp/include -I/home/etudiant/OpenCV-2.3.1/include/opencv -I/home/etudiant/OpenCV-2.3.1/include
-c src/vif/src/corrdn.cpp src/vif/src/matio.cpp src/vif/src/matutil.cpp src/vif/src/spyramid.cpp src/vif/src/vifparams.cpp src/vif/src/vifsubestm.cpp src/vif/src/vif.cpp


gcc -g -L/opt/intel/ipp/lib/ia32 -L/home/etudiant/OpenCV-2.3.1/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann -lippi -lipps -lippcore -lm
bin/corrdn.o bin/matio.o bin/matutil.o bin/spyramid.o bin/vifparams.o bin/vifsubestm.o bin/vif.o
vifmain.o -o vif

bin/vifparams.o: In function `refparams_vecgsm(_pyramid const*, _subband const*)':
/home/etudiant/quality/src/vif/src/vifparams.cpp:121: undefined reference to `ippmMul_tm_64f_P'

Could you please let me know where I am wrong?

Thanks,

Guangyi
0 Kudos
1 Reply
Ying_H_Intel
Employee
149 Views

Hi Guangyi,

The function ippmMul is declared in the ippm.h header file. So you may link ippm library in your command line

For example
-lippi -lippm -lipps -lippcore
some IPP KB artices for your reference:
Intel IPP- Library dependencies by domain
Find the Intel IPP Libraries Needed by Your Application
How to build Intel IPP application in Linux* Environment

Regards,
Ying

Reply