-bash-4.2$ bash cpp.bash TH1fit.cpp
cpp.bash: line 2: $'\r': command not found
cpp.bash: line 4: $'\r': command not found
cpp.bash: line 25: syntax error: unexpected end of file
-bash-4.2$
Hi @Wile_E_Coyote
maybe, when I opened the cpp.bash, my computer automatically modified the file to dos-econded.
I modified the file to unix-econded and I could compile
but I get
-bash-4.2$ ./TH1fit++
Warning in <UnknownClass::SetDisplay>: DISPLAY not set, setting it to linux106:0.0
Error: missing arguments: ROOT_FileIn TH1D_HistName Emin Emax
-bash-4.2$
Regarding the the display not set, maybe should I ask to the technician to set it?
Regarding the ROOT_FileIn TH1D_HistName Emin Emax, how can I pass them?
I see the utility uses also TSpectrum which is some legacy software for us. I guess the fit does not work because the initial fit parameters are not good enough.
Sorry we cannot be of much more help here