Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

undefined reference (IPP 5.0.043)

simon_leonard
Beginner
1,015 Views
Ok, I gave it a shot but I can't figure why *some* ippi functions are not linked.

When I link with -lippi I only get undefined reference for



ippiCbYCr422ToYCbCr422_8u_C2R

ippiYUV422ToRGB_8u_C2C3R

ippiRGBToGray_8u_C3C1R

ippiYUVToRGB_8u_C3R



I checked and double checked and all these functions are in the documentation and none are in ipp_API_remove.txt (the compiler doesn't complain anyway).



If I don't add -lippi, then I get 40 undefined reference. So yes, the linker can find some of them.



For example, I have

case RGB_8U:

ippiCopy_8u_C3R(rgb, rgb_steps, image_8u, steps, size);

break;

case MONO_8U:

ippiRGBToGray_8u_C3C1R(rgb, rgb_steps, image_8u, steps, size);

break;

So, it finds ippiCopy_8u_C3R but not ippiRGBToGray_8u_C3C1R...



Kind of confusing...

Fedora Core 3

gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)

GNU ld version 2.15.92.0.2 20040927


I also tried with icc v9.0, same result.

Message Edited by Simon_Leonard on 02-02-2006 12:55 AM

0 Kudos
2 Replies
simon_leonard
Beginner
1,015 Views
Just tried the same on a Fedora Core 4 machine

gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)

GNU ld version 2.15.94.0.2.2 20041220



Same thing happens *except* ippiYUVToRGB_8u_C3R is no more undefined.

Message Edited by Simon_Leonard on 02-02-2006 02:25 PM

0 Kudos
Vladimir_Dudnik
Employee
1,015 Views

Hi,

I recommend you in case of any throubles with IPP first look at documentation. It might be you miss something. For that particular case, if you look at ippiman.pdf, section Color Model Convertion, there is notice in function description that function declared in ippcc.h file, so you need to link with ippcc library. Yes, we probably need to add this info as well.

And of course you always can directly search function name in IPPlib folder to find in which library it is

Regards,
Vladimir

0 Kudos
Reply