- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everybody:
I cannot link my code with my created .a libraries. However if I link directly with the .o files that are inside the .a files than it links. Is there any trick when considering user created .a libraries?
Thanks.
Guilherme Vaz
I cannot link my code with my created .a libraries. However if I link directly with the .o files that are inside the .a files than it links. Is there any trick when considering user created .a libraries?
Thanks.
Guilherme Vaz
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There *shouldn't* be a difference between linking against .o and .a.
Can you post the error(s) you got, what version of Intel Fortran you are using, and what Linux distribution you have.
Thanks -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have Fedora Linux 3, ifort v8.1.
First it was very difficult to link with the .a libraries that were in different folders. The options -L -l seem not to work (or I am doing something wrong and different to what what I use to do in Unix and a different compiler) and so I did manually:
ifort procal_main.o -o procal ../IoLib/libIo.a
If I do that it complains (several times):
procal_main.o(.text+0x10a): In function `MAIN__':
: undefined reference to `init_procal_'
But if I copy all .o to the local folder and do:
ifort procal_main.o *.o -o procal
it works.
Can you maybe give me a hint?
Thanks.
Guilherme

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