[mcstas-users] McStas 2.1 on Win7prof 64bit machine problem

Peter Kjær Willendrup pkwi at fysik.dtu.dk
Mon Feb 2 16:11:54 CET 2015

Dear Peter,

My first guess would be that your Python libm.a ends up “before” on the searched library path than what your c-compiler provides?

Is your gcc sitting with strawberry Perl in c:\strawberry\perl\bin ? Then it might help to put -Lc:\\strawberry\\perl\\lib<smb://strawberry//perl//lib> (or whatever the path of the “real” libm is) into your MCSTAS_CFLAGS?

Alternatively, try modifying the mccodeenv.bat script in c:\mcstas-2.1\bin so that you suppress the pytohon? (I.e. set the PATH explicitly rather than adding c:\mcstas-2.1\bin)



On 02 Feb 2015, at 15:49 , Peter Link <Peter.Link at frm2.tum.de<mailto:Peter.Link at frm2.tum.de>> wrote:

Dear friends,
I like to report my problem in running mcstas 2.1 on my w7 machine.

I installed the package as recommended. I can start mcgui and load an instrument file. Once I try to compile an instrument I get the following error messages

../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible d:/python27/egg-info/min
b\libm.a when searching for -lm

I have an Enthougth Python 2.7 installed, which otherwise works fine. Have you any idea whats up?
I wouldn't like to kill my python installation as I use it for other purpose, too.

Best regards, Peter

Dr. Peter Link
Leiter Neutronenoptik
Forschungs-Neutronenquelle Heinz Maier-Leibnitz
Technische Universität München
Lichtenbergstr. 1
85747 Garching

mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20150202/ac689771/attachment.html>

More information about the mcstas-users mailing list