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

Had to add an include statement in the straw.cpp file #136

Open
princeps091-binf opened this issue Apr 22, 2024 · 0 comments
Open

Had to add an include statement in the straw.cpp file #136

princeps091-binf opened this issue Apr 22, 2024 · 0 comments

Comments

@princeps091-binf
Copy link

princeps091-binf commented Apr 22, 2024

Describe the bug
Hello, just wanted to report that in order to complete the compilation, I needed to manually modify the straw.cpp file after I cloned the repository on my local machine.

To Reproduce
More specifically, after cloning the repository, I tried compiling the tool from the C++ folder using the following command on my linux machine.

g++ -std=c++0x -o straw main.cpp straw.cpp -lcurl -lz

This produced a series of errors indicating that various variables or data types were not delcared in this scope. Some examples include:

  • straw.cpp:1015:5: error: ‘uint64_t’ was not declared in this scope
  • straw.cpp:1016:5: error: ‘nRecords’ was not declared in this scope

etc...

I then followed the compilers suggestion and added the following line in the straw.cpp file as part of the "include" block (line 39)

#include <cstdint>

Following this addition, the compilation went smoothly and the tool works as expected.

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

No branches or pull requests

1 participant