- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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'
- Marcas:
- Intel® Fortran Compiler
Link copiado
5 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
I was told that I need to dynamicly link the .so file. How do I do that?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Oh never mind I figured it out. I was compiling in 64bit mode and using a 32bit file.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Those are Linux C library routines. Try "man 3 dlopen".

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora