- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have being trying to create a static library containing some of Intel MKL libs for my application.
Here my link command:
g++ -shared -o libtest.so src/test/*.o ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippcvemerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippiemerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippcvmerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippimerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippcore.a ../../../3rdParty/mkl/Linux/10.0.3.020/lib/32/libmkl_sequential.a ../../../3rdParty/mkl/Linux/10.0.3.020/lib/32/libmkl_intel.a ../../../3rdParty/mkl/Linux/10.0.3.020/lib/32/libmkl_core.a
The problem is I get two undefined funtions (the one I use :-)
../../lib/libtest.so: undefined reference to `mkl_lapack_dpptrf'
../../lib/libtest.so: undefined reference to `mkl_lapack_dpptrs'
I have tried every order and still I can't get the function to be defined. Yet nm on the libmkl_sequential.a tells me there are defined:
00000000 T mkl_lapack_dpptrf
I would appreciate any help.
I have being trying to create a static library containing some of Intel MKL libs for my application.
Here my link command:
g++ -shared -o libtest.so src/test/*.o ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippcvemerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippiemerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippcvmerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippimerged.a ../../../3rdParty/ipp/Linux/5.3.2.068/ia32/lib/libippcore.a ../../../3rdParty/mkl/Linux/10.0.3.020/lib/32/libmkl_sequential.a ../../../3rdParty/mkl/Linux/10.0.3.020/lib/32/libmkl_intel.a ../../../3rdParty/mkl/Linux/10.0.3.020/lib/32/libmkl_core.a
The problem is I get two undefined funtions (the one I use :-)
../../lib/libtest.so: undefined reference to `mkl_lapack_dpptrf'
../../lib/libtest.so: undefined reference to `mkl_lapack_dpptrs'
I have tried every order and still I can't get the function to be defined. Yet nm on the libmkl_sequential.a tells me there are defined:
00000000 T mkl_lapack_dpptrf
I would appreciate any help.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For a link with static MKL libraries, you must observe the instructions about -Wl,--begin-group ...... -Wl,--end-group, or repeat the MKL .a libraries with the circular dependencies 3 times (4 times, if you don'tcorrect the order).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page