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

fail with compiler .f90 code

junjie_j_
Beginner
948 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
948 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?

0 Kudos
mecej4
Honored Contributor III
948 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 .

0 Kudos
Santosh_R_
Beginner
948 Views
This comment has been moved to its own thread
0 Kudos
jimdempseyatthecove
Honored Contributor III
948 Views

This comment has been moved to its own thread

0 Kudos
junjie_j_
Beginner
948 Views

Hi mecej4,

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

Junjie 

0 Kudos
mecej4
Honored Contributor III
948 Views

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

0 Kudos
Kevin_D_Intel
Employee
948 Views

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

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

0 Kudos
Reply