Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

fail with compiler .f90 code

junjie_j_
Beginner
300 Views

 

I have compile a .f90 code in Linux environment and get error like this:

/tmp/ifortqZz8NO.o: In function `MAIN__':
2_D_model.f90:(.text+0x4a): undefined reference to `dran_ini_'
2_D_model.f90:(.text+0x3c53): undefined reference to `i_dran_'
2_D_model.f90:(.text+0x41f9): undefined reference to `i_dran_'
2_D_model.f90:(.text+0x57ab): undefined reference to `dran_g_'
2_D_model.f90:(.text+0x8efc): undefined reference to `dran_u_'
2_D_model.f90:(.text+0x930f): undefined reference to `dran_u_'
2_D_model.f90:(.text+0x9419): undefined reference to `dran_u_'
2_D_model.f90:(.text+0x9729): undefined reference to `dran_u_'
2_D_model.f90:(.text+0x12e5a): undefined reference to `dran_u_'
2_D_model.f90:(.text+0x12ee2): undefined reference to `i_dran_'
2_D_model.f90:(.text+0x12eef): undefined reference to `dran_u_'

and my compile command is:

ifort -o 2_D_model 2_D_model.f90 -mkl $MKLROOT/include/mkl_dfti.f90

If any one knows what's the problem? 

 

0 Kudos
7 Replies
Kevin_D_Intel
Employee
300 Views

The compilation/link are either missing additional source files or libraries where those external references are defined.

Can you attach the 2_D_model.f90 source file?

mecej4
Black Belt
300 Views

The missing routines are found in this file, revealed by Google search: http://ifisc.uib-csic.es/raul/CURSOS/Stochastic_Simulation_Methods/dranxor.f90 .

Santosh_R_
Beginner
300 Views
This comment has been moved to its own thread
jimdempseyatthecove
Black Belt
300 Views

This comment has been moved to its own thread

junjie_j_
Beginner
300 Views

Hi mecej4,

       Thanks for your link. I found I am missing this random number generate code.

Junjie 

mecej4
Black Belt
300 Views

MODERATOR: Please consider moving the post by Santosh and the reply by Jim to a separate thread. They are out of place here.

Kevin_D_Intel
Employee
300 Views

I believe I can only move them separately. Let me try.

Update: Wasn't pretty but they effectively were moved.

Reply