saarthdeshpande opened a new issue, #35648:
URL: https://github.com/apache/arrow/issues/35648

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   Hi,
   
   I read the documentation as well as parts of the first chapter of the book 
to build the C++ library from source. After successful installation, I'm not 
sure how to proceed. How do I link the library with arrow to run the following 
code and how do I compile it? `g++ file.cpp`?
   
   ```
   #include <arrow/api.h>
   #include <arrow/array.h>
   
   #include <iostream>
   
   int main(int argc, char** argv) {
           std::vector<int64_t> data{1, 2, 3, 4};
           auto arr = std::make_shared<arrow::Int64Array>(data.size(), 
arrow::Buffer::Wrap(data));
           std::cout << arr -> toString() << std::endl;
   }
   ```
   
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to