Skip to content

Missing header in include/Ark/VM/Value/Closure.hpp #701

Description

@curloz123

What happened?

While building from source, ran into this issue

[ 82%] Building CXX object CMakeFiles/ArkReactor.dir/src/arkreactor/VM/Value/Dict.cpp.o
[ 84%] Building CXX object CMakeFiles/ArkReactor.dir/src/arkreactor/VM/Value/Future.cpp.o
In file included from /home/curl0z/dev/git/my-ark/src/arkreactor/VM/Value/Closure.cpp:1:
/home/curl0z/dev/git/my-ark/include/Ark/VM/Value/Closure.hpp:26:24: error: ‘uint16_t’ does not name a type
   26 |     using PageAddr_t = uint16_t;
      |                        ^~~~~~~~
/home/curl0z/dev/git/my-ark/include/Ark/VM/Value/Closure.hpp:18:1: note: ‘uint16_t’ is defined in header ‘<cstdint>; this is probably fixable by adding ‘#include <cstdint>’
   17 | #include <Ark/Utils/Platform.hpp>
  +++ |+#include <cstdint>
   18 |
/home/curl0z/dev/git/my-ark/include/Ark/VM/Value/Closure.hpp:43:44: error: ‘PageAddr_t’ has not been declared; did you mean ‘daddr_t’?
   43 |         Closure(const ClosureScope& scope, PageAddr_t pa) noexcept;
      |                                            ^~~~~~~~~~
      |                                            daddr_t

rest were same issue caused by the first-most error

Fix was simply adding cstdint header in the same file

What ArkScript version are you seeing the problem on?

dev

Operating System

Linux

Compiler used

GCC

Compiler version used

16.1.1

Relevant code & log output

Documentation

  • I have read existing related documentation before submitting this report
  • I have searched for an existing issue before posting

Metadata

Metadata

Assignees

No one assigned

    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