필터 지우기
필터 지우기

How to remedy loadlibrary failure when trying to load libippm?

조회 수: 2 (최근 30일)
Joe M
Joe M 2022년 2월 15일
On a CentOS 7 box, I am trying to use loadlibrary to use Intel's Integrated Performance Primitives (IPP) with Intel's C/C++ Compiler (ICC), but my attempts fail with each attempt to load libippm. The error message shows the compile command that fails and then explains the following.
Compile command that appears when using loadlibrary:
icc -I"<path to /matlab/r2021b/base/extern/include>"
-fexceptions -fPIC -fno-omit-frame-pointer -pthread
-I"<path to directory of m-files>"
-I"<path to IPP include directory>"
"libippm_thunk_glnxa64.c"
-LD -Fe "libippm_thunk_glnxa64.so"
Error explanation:
icc: command line warning #10006: ignoring unknown option '-Felibippm_thunk_glnxa64.so'
/lib64/crt1.so:
In function `_start': (.text+0x20): undefined reference to `main'
Possibly pertinent information:
When I look at compilation configurations with the following commands, I see no linker for the C compiler option.
cc = mex.getCompilerConfigurations
cc.LinkerName
cc.LinkerName for the C option (and the FORTRAN option) is a 0x0 empty char array.
I get the same kind of error message when I try to load libmkl_rt.

답변 (0개)

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by