"undefined reference to"

"undefined reference to"

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

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

What's the rest of the message? It should name the symbol it could not find.

Steve - Intel Developer Support

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_'

Thanks

Hemanth

It looks as if you're missing part of your application, routines such as generate_active_file, etc.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today