Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing headers to fix compilation #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivoanjo
Copy link

@ivoanjo ivoanjo commented Aug 15, 2024

Hey! Thanks a lot for harb, I'm using it to debug a few flaky tests that rely on garbage collection.

I ran into a few errors when trying to compile harb on Ubuntu 22.04 (gcc 11.4.0):

main.cc:35:3: error: ‘va_start’ was not declared in this scope
   35 |   va_start(args, fmt);
      |   ^~~~~~~~

ruby_heap_obj.h:132:25: error: ‘FILE’ has not been declared
  132 |   void print_ref_object(FILE *);
      |                         ^~~~

ruby_heap_obj.h:64:21: error: ‘uint64_t’ was not declared in this scope
   64 | typedef std::vector<uint64_t> RubyHeapAddrList;
      |                     ^~~~~~~~

Adding these headers fixes compilation.

I ran into a few errors when trying to compile harb on Ubuntu 22.04
(gcc 11.4.0):

```
main.cc:35:3: error: ‘va_start’ was not declared in this scope
   35 |   va_start(args, fmt);
      |   ^~~~~~~~

ruby_heap_obj.h:132:25: error: ‘FILE’ has not been declared
  132 |   void print_ref_object(FILE *);
      |                         ^~~~

ruby_heap_obj.h:64:21: error: ‘uint64_t’ was not declared in this scope
   64 | typedef std::vector<uint64_t> RubyHeapAddrList;
      |                     ^~~~~~~~
```

Adding these headers fixes compilation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant