qromo


kyle
05-28-2002, 07:03 AM
Hi,

I'm getting a strange error message and was wondering if anyone could help.

I'm tring to use qromo with midpnt as the choose function to integrate a function but I keep getting the following error:

"use name assert_eq is not a public entity in this module".

assert_eq is from the polint routine that qromo calls.

Apologies if this is a foolish question, I'm fairly new to this and any pointers would be appreciated.

Saul Teukolsky
05-28-2002, 08:05 AM
It looks like you're not giving the compiler/linker all the info it needs. Try compiling the routines that produce modules separately first:

f90 -c nrtype.f90
f90 -c nrutil.f90
f90 -c nr.f90

Then compile the rest of the stuff and link these in:

f90 yourmain.f90 qromo.f90 polint.f90 nrtype.o nrutil. nr.o

Hope this helps.

Saul Teukolsky

kyle
05-29-2002, 09:49 PM
Saul, thank you that did help. It seems to be a compiler quirk. Compiling the module files first did help with the Lahey Compiler (version 6.0) running on a linux box. On the other hand, I had no problem with the intel compiler (the free downloadable version), also on a linux box, which accepted the .f90 module files without a murmur.

Again, thanks for the tip.