- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI:
I am trying to compile a fortran 90 code with MPI directives using i386-intel-8.0. The code compiles perfectly but while linking it gives me the error "undefined reference to......" . Can anyone please tell me why this happens? Is there a way to get around this problem?
Thanks
Hemanth
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's the rest of the message? It should name the symbol it could not find.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The rest of the error message is as follows:
solve_driver.o(.text+0x88): In function `solve_driver_.J':
: undefined reference to `generate_active_file_'
solve_driver.o(.text+0x8e): In function `solve_driver_.J':
: undefined reference to `tar_input_files_'
solve_driver.o(.text+0x37c): In function `solve_driver_.J':
: undefined reference to `read_active_file_'
solve_driver.o(.text+0x5a8): In function `solve_driver_.A':
: undefined reference to `generate_active_file_'
solve_driver.o(.text+0x5ae): In function `solve_driver_.A':
: undefined reference to `tar_input_files_'
solve_driver.o(.text+0x870): In function `solve_driver_.A':
: undefined reference to `read_active_file_'
: undefined reference to `generate_active_file_'
solve_driver.o(.text+0x8e): In function `solve_driver_.J':
: undefined reference to `tar_input_files_'
solve_driver.o(.text+0x37c): In function `solve_driver_.J':
: undefined reference to `read_active_file_'
solve_driver.o(.text+0x5a8): In function `solve_driver_.A':
: undefined reference to `generate_active_file_'
solve_driver.o(.text+0x5ae): In function `solve_driver_.A':
: undefined reference to `tar_input_files_'
solve_driver.o(.text+0x870): In function `solve_driver_.A':
: undefined reference to `read_active_file_'
Thanks
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks as if you're missing part of your application, routines such as generate_active_file, etc.

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