Topic: Influence of GCC version on OOFEM compilation

Hi,I had a problem compiling OOFEM.
I could compile OOFEM successfully in using GCC-4.8 or GCC-4.9
I found that OOFEM could not be successfully compiled with GCC versions of version 5 or higher.
The error is as follows:

oofem-2.4/src/oofemlib/neumannmomentload.C:91:42: error: ‘fabs’ was not declared in this scope
             coord.times(gp->giveWeight()*fabs(detJ));

All files that involve fabs functions are not compiled with the same error

How could I solve this problem? Only OOFEM could be compiled by using GCC which version were lower than 5?

Thank you for your reply!

2

Re: Influence of GCC version on OOFEM compilation

Hi,
I have g++ 7.4.0 on my Ubuntu desktop and everything compiles smoothly.
Do you refer to development (git) version or to the stable one? Could you provide configure log?
Borek