Windows compilation

Kristian Nielsen kristian.nielsen at risoe.dk
Wed Feb 2 10:25:20 CET 2000


> Date: Tue, 01 Feb 2000 09:06:01 -0600
> From: "Ankner, John" <jankner at anl.gov>

> Kristian,

> goes well, except that neither I nor the Visual C++ 5.0 compiler/linker can
> locate a main() function.  In my limited knowledge of C, I believe we need

The main() function is located in the file "instrument.tab.c". Probably
you missed this file because of file name mangling when copying between
Linux and Windows. You also need the file "lex.yy.c". Maybe you should
rename them to something without two dots.

> In addition, what function does the mcstas-r.c code perform?  Attempting to
> compile it with the rest causes many error messages.  I have therefore
> omitted it.

That is right, it should not be included. It is used in the simulations
generated by mcstas, not in mcstas itself.

I hope this helps,

 - Kristian.






More information about the mcstas-users mailing list