Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
11 Views

fail with compiler .f90 code

 

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
Highlighted
Employee
11 Views

The compilation/link are

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
Highlighted
Black Belt
11 Views

The missing routines are

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
Highlighted
Beginner
11 Views

Hello!

This comment has been moved to its own thread
0 Kudos
Highlighted
11 Views

Your

This comment has been moved to its own thread

0 Kudos
Highlighted
Beginner
11 Views

Hi mecej4,

Hi mecej4,

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

Junjie 

0 Kudos
Highlighted
Black Belt
11 Views

MODERATOR: Please consider

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
Highlighted
Employee
11 Views

I believe I can only move

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

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

0 Kudos