F2I-Consulting / fesapi

DevKit for ENERGISTICS™ data standards (mainly RESQML™), multi-languages (C++, Java, C#, Python)
Apache License 2.0
32 stars 24 forks source link

compilation error #346

Open untereiner opened 1 week ago

untereiner commented 1 week ago

What are the steps to reproduce this issue?

  1. git clone
  2. cmake build with g++ (GCC) 14.1.1 20240522

What does happen?

/home/fesapi-superbuild/build/release-gcc/_deps/fesapi-src/src/resqml2/IjkGridParametricRepresentation.cpp: In member function ‘void resqml2::IjkGridParametricRepresentation::getXyzPointsAlongACoordinateLine(uint64_t, uint64_t, uint64_t, uint64_t, const double*, double*) const’:
/home/fesapi-superbuild/build/release-gcc/_deps/fesapi-src/src/resqml2/IjkGridParametricRepresentation.cpp:437:30: error: ‘memcpy’ is not a member of ‘std’; did you mean ‘wmemcpy’?
  437 |                         std::memcpy(xyzPoints + xPointIndex, pillarInformation->controlPoints.get() + pillarXIndex, 2 * sizeof(double));
      |                              ^~~~~~
      |                              wmemcpy

What were you expecting to happen?

no compilation error suggestion:include <cstring> in IjkGridParametricRepresentation.cpp

Any logs, error output, etc?

n.a.

Any other comments?

n.a.

What versions of fesapi are you using?

n.a.

philippeVerney commented 1 week ago

Hi Lionel, I think it is only on the dev branch. As this branch is close to become the v2.10, I am happy you raise this issue now. Thanks!

untereiner commented 1 week ago

Hi @philippeVerney, yes on the dev branch !