- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am compiling on openSuse Linux, using IFC Composer X
the .so file is provided to me from a licensing software company. I am integrating it into my code.
Do I need a library file to get the symbols?
ifort -O2 -auto -ansi_alias- -pad_source -traceback -fltconsistency -fpconstant relap/relap5.o \\
relap/relapo.a scdap/scdapo.a \\
matpro/matproo.a scdap/scdapo.a envrl/envrlo.a \\
lib/libFileMgmt.so -o bin\\relap5.x
ipo: warning #11010: file format not recognized for lib/libFileMgmt.so
lib/libFileMgmt.so: could not read symbols: File in wrong format
make[1]: [relap5o.x] Error 1 (ignored)
make[1]: Leaving directory `/home/brian.allison/iss_relap/RELAP5Mod35/rs35da.aprl2012'
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was told that I need to dynamicly link the .so file. How do I do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think that there is anything wrong in the way you are trying to link the shared object. However, there are indications that the third party shared object may target a different OS. Run the ldd and file commands on the shared library and post the output here, please.
$ ldd <path to libFileMgmt.so>
$ file <path to libFileMgmt.so>
It would be helpful to have, in addition, the outputs of
$ uname -a
$ ifort -V
$ ldd <path to libFileMgmt.so>
$ file <path to libFileMgmt.so>
It would be helpful to have, in addition, the outputs of
$ uname -a
$ ifort -V
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh never mind I figured it out. I was compiling in 64bit mode and using a 32bit file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The people at Nalperion that provided the .so file are telling me that I need to Dynamiclly load the .so file and then call the functions. The .so file is in C and they are telling me that I need to use dlopen, dlsym, and dlcose. Where can I find documentation on that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Those are Linux C library routines. Try "man 3 dlopen".

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