AODQ / pulchritude-engine

lingua franca game engine
MIT License
0 stars 0 forks source link

Remaining Compilation Errors on dev/windows-gcc-build-errors #39

Closed L0932 closed 2 years ago

L0932 commented 2 years ago

bug description There are two remaining compilation errors.

  1. fsqrt not recognized

/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

  1. constructor that accepts two floats for PuleF32v2 is not defined

/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

AODQ commented 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 {}