Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29298 Discussões

Could not read symbols File in wrong format

Brian_A_
Novato
1.701 Visualizações
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'
0 Kudos
5 Respostas
Brian_A_
Novato
1.701 Visualizações
I was told that I need to dynamicly link the .so file. How do I do that?
mecej4
Colaborador honorário III
1.701 Visualizações
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

Brian_A_
Novato
1.701 Visualizações
Oh never mind I figured it out. I was compiling in 64bit mode and using a 32bit file.
Brian_A_
Novato
1.701 Visualizações
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?
Steven_L_Intel1
Funcionário
1.701 Visualizações
Those are Linux C library routines. Try "man 3 dlopen".
Responder