Closed L0932 closed 2 years ago
thanks. It seems like a typo on my part, should be sqrtf
and I suppose fsqrt
is coming from somewhere else.
Some C++ compiler differences here were PuleF32v2::PuleF32v2
can't create an implicit constructor. This can be fixed replacing ()
with {}
bug description There are two remaining compilation errors.
/mnt/e/Engines/pulchritude-examples/pulchritude-engine/library/math/src/math.cpp: In function ‘float puleF32v3Length(PuleF32v3)’: /mnt/e/Engines/pulchritude-examples/pulchritude-engine/library/math/src/math.cpp:41:10: error: ‘fsqrt’ was not declared in this scope; did you mean ‘sqrt’? 41 | return fsqrt(a.xa.x + a.ya.y + a.z*a.z); | ^~~~~ | sqrt
/mnt/e/Engines/pulchritude-examples/examples/ecs/repo/src/core.cpp: In function ‘void gravityForceSingle(PuleEcsIterator)’: /mnt/e/Engines/pulchritude-examples/examples/ecs/repo/src/core.cpp:200:5: error: no matching function for call to ‘PuleF32v2::PuleF32v2(float, float)’ 200 | );
how to reproduce compile via cmake
specs