[FLASH-USERS] undefined references in Simulation_init during linking

Josef Stöckl josef.stoeckl at uibk.ac.at
Sun Jul 6 05:44:35 EDT 2008


Hi Ken,

Did you check your dependencies in the Makefile? This looks like you haven't
specified the module dependencies, so the FLASH setup script doesn't know
that you need the Simulation_data module for linking. Please check, if you
have something like the following two lines in the Makefile within your
simulation's directory (source/Simulation/SimulationMain/<simulation
name>/Makefile):

Simulation += Simulation_data.o 
Simulation_init.o : Simulation_data.o

I hope this helps. After modifying the Makefile you need to call the FLASH
setup script again, so that the proper build environment gets reworked.

Best regards,
Josef


> -----Ursprüngliche Nachricht-----
> Von: flash-users-bounces at flash.uchicago.edu [mailto:flash-users-
> bounces at flash.uchicago.edu] Im Auftrag von Ken Dere
> Gesendet: Samstag, 05. Juli 2008 23:01
> An: flash-users at flash.uchicago.edu
> Betreff: [FLASH-USERS] undefined references in Simulation_init during
> linking
> 
> I am trying to set up a new problem that bombs when I get to the link
> stage.  I get the following:
> 
> Simulation_init.o: In function `simulation_init_':
> Simulation_init.F90:(.text+0xa): undefined reference to
> `__simulation_data_MOD_simgamma'
> Simulation_init.F90:(.text+0x1e): undefined reference to
> `__simulation_data_MOD_simgdirec'
> Simulation_init.F90:(.text+0x32): undefined reference to
> `__simulation_data_MOD_simgvector'
> 
> plus a few more like this
> 
> this comes from calling, in Simulation_init
> 
>   call RuntimeParameters_get('gamma',  simGamma)
> 
>   call RuntimeParameters_get('grv_direc',  simGdirec)
>   call RuntimeParameters_get('grv_vector'  ,simGvector)
> 
> simGamma is defined in Simulation_data.
> 
> I am able to compile and link the sample programs that I have tried and
> I just don't see what I am doing wrong.
> 
> suggestions are welcomed.
> 
> best regards,
> 
> Ken Dere





More information about the flash-users mailing list