Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking libraries

Status
Not open for further replies.

Pirikokku

Geotechnical
May 12, 2006
6
Hi everybody,

I am trying to run a model which includes the subroutine *Dload, but i have
got some problems:

...
Begin Compiling ABAQUS/Standard User Subroutines
Thu 24 May 2007 04:57:37 PM CEST
End Compiling ABAQUS/Standard User Subroutines
Thu 24 May 2007 04:57:37 PM CEST
Begin Linking ABAQUS/Standard User Subroutines
Thu 24 May 2007 04:57:37 PM CEST
g++: creep_: No such file or directory
g++: dflow_: No such file or directory
...
...
ABAQUS Error: Problem during linking - ABAQUS/Standard User Subroutines


I am using the Abaqus 6.5, within linux suse 9.3 and using the GNU compilers
g77 and g++. I think should be a problem on setting the .env file. Does
anybody know the solution??
Here below the part of my .env file relative to the compiling:

compile_fortran = ( "g77 -c -O -DLINUX -I%I" )

compile_cpp = ( "g++ -c -fPIC -DPIC -w -Wmissing-prototypes -Wuninitialized "
+
"-DHKS_LINUX -DLINUX -DHAS_BOOL -DFOR_TRAIL -DHKS_DEBUG " +
"-D_BSD_TYPES -D_BSD_SOURCE -D_GNU_SOURCE " +
"-D_XOPEN_SOURCE_EXTENDED -DEMULATE_EXCEPTIONS=0 " +
"-DGL_GLEXT_PROTOTYPES -DHAVE_OPENGL -DHKS_OPEN_GL " +
"-DSUN_OGL_NO_VERTEX_MACROS -Winline -fpermissive " +
"-instances=explicit -fexceptions -fstrict-prototype " +
"-fvtable-thunks -DTYPENAME= -D_POSIX_SOURCE " +
"-D_XOPEN_SOURCE -DSPECIALIZE -O0 -I%I" )

link_sl = ( "g++ -Wl,-warn-once -fPIC -fexceptions -fvtable-thunks " +
" -Wl,-export-dynamic -shared %E -Wl,-soname,%U -o %U %F " +
"%A %B -Wl,-Bdynamic -lgcc -lg2c -lm -lc" )

link_exe = ( "g++ -Wl,-warn-once -fexceptions -fPIC -Wl,--no-demangle " +
"-Wl,-noinhibit-exec -o %J %F %M %L %B %O " +
"-lm -lpgc -lgcc -lg2c -lgcc -lg2c" )


Cheers,

Andrea
 
Replies continue below

Recommended for you

I am not familiar with ABAQUS under Linux. However, here are some remarks that might help:
- look in job_name.log and see if there's any info about the linking problem (i.e. lib not found etc.)
- you should check the ABAQUS recommended compilers for v6.5. Personally, for v6.6 under Win, I could not use subroutines with any Fortran compiler until installing Intel's Fortran. Apparently, the linker was looking for some Intel specific Fortran libs. This is quite a frustrating requirement considering ABAQUS employs lots of freely available software to develop their code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor