Duke4.net Forums: Ubuntu compilation: error: ‘(1.07000005e+0f / 1.02400005e+0f)’ is not a constant expression - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ubuntu compilation: error: ‘(1.07000005e+0f / 1.02400005e+0f)’ is not a constant expression  "Build issues on Ubuntu18"

User is offline   gafroor 

#1

Hi all!

Anybody spotted a similar issue maybe? There seems to be nothing "non-constant" here...

source/build/src/polymer.cpp:5339:73: error: ‘(1.07000005e+0f / 1.02400005e+0f)’ is not a constant expression
static constexpr float factor_new = 1.f / ((2048.f * (1.07f / 1.024f) * (150.f / 230.f) / 35.f) * material_visibility_divisor);
~~~~~~~^~~~~~~~~
source/build/src/polymer.cpp:5341:73: error: ‘(1.07000005e+0f / 1.02400005e+0f)’ is not a constant expression
static constexpr float factor_old = 1.f / ((2048.f * (1.07f / 1.024f) / 35.f) * material_visibility_divisor);


Thanks!
0

User is offline   TerminX 

  • el fundador

  #2

This one is likely a compiler bug, but you can work around it for now by removing "-frounding-math" from Common.mak.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options