Mcstas 1.1

Kristian Nielsen kristian.nielsen at risoe.dk
Fri Jun 11 08:38:51 CEST 1999


> Dear Kristian,
> 
> please find below the linup-1.c file which
> has got undefined variables.

Ok, from this I was able to spot the cause of the problems with
undefined symbols. The problem is the mixing of two different versions
of McStas. The file has been generated with version 1.1 of McStas, but
using files from version 1.0. This means that the 'mcstas' command that
was run is from version 1.1, but when the program searched for the files
it needed (particularly mcstas-r.c and mcstas-r.h), it found the wrong
ones from version 1.0. This will not work.

I wonder how this has happened? Perhaps the most likely cause is that
when you installed version 1.0, the environment variable MCSTAS was set
to point to the location of the 1.0 files (you can check this with the
command

  echo $MCSTAS

and see if it gives the name of a directory). Then McStas v1.1 was
installed in another location, without updating the environment
variable. Usually, the environment variable is not necessary since
McStas remembers the location of its files when it is installed. Setting
the variable to the wrong value would cause the problems you
experienced.

I hope this clarifies things for you? Otherwise, perhaps you can write
me the exact command that was used to produce the file 'linup-1.c' along
with the output from the "echo $MCSTAS" command above?

 - Kristian.







More information about the mcstas-users mailing list