Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

"undefined reference to"

hemanth_mandanna
Beginner
752 Views
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
0 Kudos
3 Replies
Steven_L_Intel1
Employee
752 Views
What's the rest of the message? It should name the symbol it could not find.
0 Kudos
hemanth_mandanna
Beginner
752 Views
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
0 Kudos
Steven_L_Intel1
Employee
752 Views
It looks as if you're missing part of your application, routines such as generate_active_file, etc.
0 Kudos
Reply