- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am getting the following error messages when trying to link an image.
The objects are in a library - this is a fragment of the errors
In function `yesno_p_gen_':
temp/yesno_p_gen.for:(.text+0x54): undefined reference to `for_concat'
temp/yesno_p_gen.for:(.text+0x133): undefined reference to `for_cpstr'
temp/yesno_p_gen.for:(.text+0x157): undefined reference to `for_cpstr'
temp/yesno_p_gen.for:(.text+0x17c): undefined reference to `for_cpystr'
temp/yesno_p_gen.for:(.text+0x2a7): undefined reference to `for_cpstr'
temp/yesno_p_gen.for:(.text+0x2cb): undefined reference to `for_cpstr'
I presume I need to link in a fortran library
the modules were put in the library with this routine.
ifort $1.for -c
ar r asdsm.a $1.o
rm $1.o
the image is created via ingres abf; the library asdsm is linked in via the abf options file.
Thanks in advance for any help
The objects are in a library - this is a fragment of the errors
In function `yesno_p_gen_':
temp/yesno_p_gen.for:(.text+0x54): undefined reference to `for_concat'
temp/yesno_p_gen.for:(.text+0x133): undefined reference to `for_cpstr'
temp/yesno_p_gen.for:(.text+0x157): undefined reference to `for_cpstr'
temp/yesno_p_gen.for:(.text+0x17c): undefined reference to `for_cpystr'
temp/yesno_p_gen.for:(.text+0x2a7): undefined reference to `for_cpstr'
temp/yesno_p_gen.for:(.text+0x2cb): undefined reference to `for_cpstr'
I presume I need to link in a fortran library
the modules were put in the library with this routine.
ifort $1.for -c
ar r asdsm.a $1.o
rm $1.o
the image is created via ingres abf; the library asdsm is linked in via the abf options file.
Thanks in advance for any help
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, those references require linking the Intel Fortran run-time libraries. If you use the ifort to run the link, it will include those libraries automatically. So, one way of discovering the necessary -l options is to make a test program and link it by 'ifort -# .....' so as to get the full list of commands which go to the linker. Another is to comb through the libraries in the ifort installation by commands such as 'nm *.a | grep for_cp'

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