Mcstas 1.1
Kristian Nielsen
kristian.nielsen at risoe.dk
Wed Jun 9 15:22:18 CEST 1999
> We installed the new Mcstas 1.1 version at PSI.
> We have the following problems
> 1. After compiling the program for the linup-1.instr example, it turns
> out that the globale double variables
> "mns1" and "mns2' are not declared.
Hm, I do not understand this. Maybe you could give more details? Could
you send me a copy of the "linup-1.c" file produced by McStas with this
problem?
I tried to log in on my account on your host "lnsa15.psi.ch" and run the
linup-1 example. The version of McStas installed on this machine appears
to be v1.0, and I could compile and run the linup-1 example without
problems. I also had no problems with my private installation of McStas
v1.1 on this machine.
> 2. using cc with DU 4.OD gives a core dump. The prgram works with gcc.
Yes, this is a known problem/feature of the Digital Unix C compiler. I
just added an explanation of this problem to a new "FAQ" with this
address:
http://neutron.risoe.dk/mcstas/FAQ.html
Basically, it is necessary to pass the "-std1" option to the Digital C
compiler to get ANSI C semantics, like this:
cc -std1 -o linup-1 linup-1.c -lm
> Thank You for helping us,
You are most welcome! If you have any further problems, feel free to ask
again.
- Kristian.
More information about the mcstas-users
mailing list