rmartin
(Roman Martin)
6 November 2025 09:24
2
Dear @akshad997
for me, your files build without an issue.
please try the following:
Update Flair to the newest version 3.4-5
delete all *.o and *.mod files in the directory and build again from Flair only. If the error still occurs, look up the Output tab and copy the details here.
akshad997
(Shad Mohamed A K)
7 November 2025 04:23
3
Yes I updated the flair.
Deleted all the .o and .mod files in the directory and clicked build. Same error came.
Error : *-* Linking: /mnt/volume/Flukafinal/fluka4-5.0/bin/lfluka -o source
source_newgen.o
gfortran -o source -fuse-ld=bfd source_newgen.o
-L/mnt/volume/Flukafinal/fluka4-5.0/lib -lfluka -lgeometry -ldata -lmath
-ltool -lstdc++ -lz -lpthread
/usr/bin/ld.bfd: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
Ended: 2025.11.07 09:47:09
Error linking
Error: executable is not generated
rmartin
(Roman Martin)
7 November 2025 12:42
4
according to this post you are missing the g++ package. Please install that and try again.
akshad997
(Shad Mohamed A K)
11 November 2025 06:35
6
Hi everyone…
Finally it ran successfully. I reinstalled the software again.
Now the new error is : Cannot open source_events.dat
Please help! The source file (source_newgen.f) is already uploaded in the first message where I have given a command to open ‘source_events.dat’
horvathd
(Dávid Horváth)
13 November 2025 13:23
7
Dear Shad,
if you use the general Fortran open() function, then the data file must be present in the temporary fluka_xxxxx directory.
I would suggest to use the FLUKA function oauxfi(), which searches for the file in multiple locations.
See slide 18 from https://indico.cern.ch/event/1200922/contributions/5411803/attachments/2659603/4606825/03_Fortran_basics_2023_Advanced_ANL.pdf
Cheers,
David
akshad997
(Shad Mohamed A K)
14 November 2025 05:25
8
Thank you David.
The code ran, when I reinstalled fluka again.