straw icon indicating copy to clipboard operation
straw copied to clipboard

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

Open princeps091-binf opened this issue 1 year ago • 0 comments

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.

princeps091-binf avatar Apr 22 '24 12:04 princeps091-binf