Re: [fluka-discuss]: Flair and FLUKA

From: Mikhail Polkovnikov <pmk_at_ihep.ru>
Date: Thu, 1 Apr 2021 23:38:17 +0300

Dear Mario,

Recent versions of glibc removed pow10 function since it's not a part of
the standard, instead of v=pow10(v) you can use v = pow( 10, v).

You can check man pages: "man pow" and "man pow10"


Best regards,
Mikhail


On 31.03.2021 22:55, Mario Fabretto wrote:
>
> Hi Mario and all,
>
> After having sucessfully compiled fluka and flair, I tried to compile
> flair-geoviewer.
>
> Issuing the $ make command I get:
>
> make -C optimizer
> make[1]: Entering directory
> '/home/mario/Documents/flair/flair-geoviewer-2.3/optimizer'
> c++ -c optimizer.cc -m64 -DUNIX -O4 -funroll-loops -g -DNDEBUG
> -D_DEBUG=0 -DTHREAD -Wall -Wcast-align -Wcast-qual -Wextra -Wformat
> -Wpointer-ari
> th -Wredundant-decls -Wshadow -Wno-write-strings -fwrapv
> -fstack-protector -fpic -I../utils -I../math -I../graph -I../geometry
> -I../data -fstric
> t-aliasing
> In file included from ../data/eventbin.h:43,
>                 from roi.h:19,
>                 from optimizer.h:12,
>                 from optimizer.cc:20:
> ../data/usrbin.h:In member function ‘double Usrbin::get(double,
> double, double, bool*) const’:
> ../data/usrbin.h:221:9: error: ‘pow10’ was not declared in this scope
>  221 |     v = pow10(v);
>      | ^~~~~
> ../data/usrbin.h:In member function ‘double Usrbin::get(int, bool*)
> const’:
> ../data/usrbin.h:228:9: error: ‘pow10’ was not declared in this scope
>  228 |     v = pow10(v);
>      | ^~~~~
> optimizer.cc:In member function ‘void Optimizer::init(std::string,
> std::string, bool, int, std::string)’:
> optimizer.cc:96:8: warning: ignoring return value of ‘int system(const
> char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   96 | system(comm.c_str());
>      | ~~~~~~^~~~~~~~~~~~~~
> optimizer.cc:99:8: warning: ignoring return value of ‘int system(const
> char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>   99 | system(comm.c_str());
>      | ~~~~~~^~~~~~~~~~~~~~
> optimizer.cc:104:8: warning: ignoring return value of ‘int
> system(const char*)’ declared with attribute ‘warn_unused_result’
> [-Wunused-result]
>  104 | system(comm.c_str());
>      | ~~~~~~^~~~~~~~~~~~~~
> optimizer.cc:In member function ‘void Optimizer::PrintInitial()’:
> optimizer.cc:2876:2: warning: this statement may fall through
> [-Wimplicit-fallthrough=]
> 2876 | if(!isLetOptimization) {
>      | ^~
> optimizer.cc:2880:2: note: here
> 2880 | default: cout<<"<Dose-difference>"<<endl;//this is case 1;
>      | ^~~~~~~
> make[1]: *** [../rules.mk:209: optimizer.o] Error 1
> make[1]: Leaving directory
> '/home/mario/Documents/flair/flair-geoviewer-2.3/optimizer'
> make: *** [makefile:286: optimizer/liboptimizer.a] Error 2
>
>
>
> have you an idea about the problem?
>
> Thanks,
>
> Mario L. Fabretto
>
> Φi∫i⊂∅ - biomeccanico - esperto in radioprotezione
> via E. Fermi, 18
> I-34070 Turriaco
> cell.: +39 348 287 4022
>
> __________________________________________________________________________
> You can manage unsubscription from this mailing list at
> https://www.fluka.org/fluka.php?id�c_info




__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Fri Apr 02 2021 - 00:45:07 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 02 2021 - 00:45:39 CEST