[fluka-discuss]: RE: Linking error when building executable

From: Anton Lechner <Anton.Lechner_at_cern.ch>
Date: Fri, 3 Feb 2017 17:37:29 +0000

Dear Mark,

It is simply a permission problem: you try to generate the executable in a system directory (/usr/local/fluka) where you don't have write permissions. In general it is bad practice to generate user code in system directories.

You should change following line
/usr/local/fluka/flutil/lfluka -o /usr/local/fluka/fluka_source12a -m fluka ../windows/source12a.o

to something like:
/usr/local/fluka/flutil/lfluka -o ../windows/fluka_source12a -m fluka ../windows/source12a.o

Then the executable will be created in the same directory where you have the object file (and I guess also the source routine).

Cheers,
Anton


________________________________
From: owner-fluka-discuss_at_mi.infn.it [owner-fluka-discuss_at_mi.infn.it] on behalf of mark.ibison_at_cockcroft.ac.uk [mark.ibison_at_cockcroft.ac.uk]
Sent: 03 February 2017 17:11
To: fluka-discuss_at_fluka.org
Subject: [fluka-discuss]: Linking error when building executable

Dear FLUKA Users,

I am receiving the attached errors in the linking phase of building a new executable with the user-defined SOURCE routine, from the file ‘ source12a.f’.
There are no compiler errors, and the code has built and run successfully in another environment.
I am running FLUPIX under VirtualBox in Windows 7.

I am sure it is a minor problem because I have been able to link and run similar code previously.

Thanks.

Mark Ibison



Dr Mark Ibison
Accelerator Beam Diagnostics

QUASAR Group
University of Liverpool Dept of Physics
Cockcroft Institute
Daresbury Laboratory
WARRINGTON
WA4 4AD

Tel. +44 (0)1925 864056
Email: mark.ibison_at_cockcroft.ac.uk



__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Feb 03 2017 - 19:56:01 CET

This archive was generated by hypermail 2.3.0 : Fri Feb 03 2017 - 19:56:02 CET