Linking to IPP library in Linux

Linking to IPP library in Linux

Hello,

I'm having a little problem compiling with Intel's IPP librarty while using the Intel Linux compiler. I do

icc test.cc -L/opt/intel/ipp/sharedlib -I/opt/intel/ipp/include -o test

The .h seems to be found OK. It recognizes the special IPP structures. But, when an actual IPP function is used it has an error.

What should I do??

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

I expect you need also a -l option. If your library is in sharedlib/libipp.a, for example, append -l ipp. The linker is standard gnu ld, it has no idea what libraries you want from the library search path.

发表评论

登录添加评论。还不是成员?立即加入