Skip to content

Compilation error on windows #284

@Uriagat

Description

@Uriagat
FAILED: endpoint/core/CMakeFiles/privmxendpointcore.dir/src/TimestampValidator.cpp.obj
C:\msys64\mingw64\bin\c++.exe -DMINIMAL_BUILD -Dprivmxendpointcore_EXPORTS -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include_pub -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/privfs/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/utils/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/build/utils/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/crypto/base/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/build/crypto/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/crypto/openssl/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/rpc/base/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/build/rpc/include -IC:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/rpc/poco/include -isystem C:/Users/developer/install/include -Os -fPIC -Wall -Wextra -std=gnu++17 -MD -MT endpoint/core/CMakeFiles/privmxendpointcore.dir/src/TimestampValidator.cpp.obj -MF endpoint\core\CMakeFiles\privmxendpointcore.dir\src\TimestampValidator.cpp.obj.d -o endpoint/core/CMakeFiles/privmxendpointcore.dir/src/TimestampValidator.cpp.obj -c C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/src/TimestampValidator.cpp
In file included from C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/src/TimestampValidator.cpp:12:
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include/privmx/endpoint/core/TimestampValidator.hpp:24:26: error: 'int64_t' has not been declared
   24 |     static bool validate(int64_t clinetTimestamp, int64_t serverTimestamp);
      |                          ^~~~~~~
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include/privmx/endpoint/core/TimestampValidator.hpp:24:51: error: 'int64_t' has not been declared
   24 |     static bool validate(int64_t clinetTimestamp, int64_t serverTimestamp);
      |                                                   ^~~~~~~
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include/privmx/endpoint/core/TimestampValidator.hpp:27:22: error: 'int64_t' does not name a type
   27 |     static constexpr int64_t TIMESTAMP_ALLOWED_DELTA = 5*60*1000; // in miliseconds
      |                      ^~~~~~~
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include/privmx/endpoint/core/TimestampValidator.hpp:16:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   15 | #include <algorithm>
  +++ |+#include <cstdint>
   16 |
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/src/TimestampValidator.cpp:17:6: error: no declaration matches 'bool privmx::endpoint::core::TimestampValidator::validate(int64_t, int64_t)'
   17 | bool TimestampValidator::validate(int64_t clinetTimestamp, int64_t serverTimestamp) {
      |      ^~~~~~~~~~~~~~~~~~
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include/privmx/endpoint/core/TimestampValidator.hpp:24:17: note: candidate is: 'static bool privmx::endpoint::core::TimestampValidator::validate(int, int)'
   24 |     static bool validate(int64_t clinetTimestamp, int64_t serverTimestamp);
      |                 ^~~~~~~~
C:/Users/developer/privmxlib3/repos/privmx-endpoint-2.3.4/endpoint/core/include/privmx/endpoint/core/TimestampValidator.hpp:22:7: note: 'class privmx::endpoint::core::TimestampValidator' defined here
   22 | class TimestampValidator {
      |       ^~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions