- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The missing routines are found in this file, revealed by Google search: http://ifisc.uib-csic.es/raul/CURSOS/Stochastic_Simulation_Methods/dranxor.f90 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MODERATOR: Please consider moving the post by Santosh and the reply by Jim to a separate thread. They are out of place here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe I can only move them separately. Let me try.
Update: Wasn't pretty but they effectively were moved.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page