Windows compilation

Ankner, John jankner at anl.gov
Tue Feb 1 16:06:01 CET 2000


Kristian,
     Having now encountered sufficient difficulties in trying to compile a
new PSD TOF detector on the Linux box, I am now attempting to install mcstas
on my NT box.  I followed the directions in your previous message and all
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
this.  Let me know if there is something subtle going on (trivial being more
likely).  FYI, here is the linker error message:


--------------------Configuration: mcstas - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/mcstas.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

mcstas.exe - 2 error(s), 0 warning(s)


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.
Thanks,
John





More information about the mcstas-users mailing list