hi, I think you need to add the .lib files for linking; adding the include directories alone won't do it. The DLL files must be in your %PATH% at runtime.
- Wes On Thu, Jun 21, 2018 at 8:22 AM, diam5...@gmail.com <diam5...@gmail.com> wrote: > Hello. I have installed apache arrow C++ API on windows 10 , and all the > tests are running fine. > > But when I am trying to make my own c++ program using apache arrow I get this > error : > > > “Severity Code Description Project File Line > Suppression State > Error LNK2001 unresolved external symbol > "__declspec(dllimport) class arrow::MemoryPool * __cdecl > arrow::default_memory_pool(void)" > (__imp_?default_memory_pool@arrow@@YAPEAVMemoryPool@1@XZ) test > C:\Users\t_aggelosd\Desktop\test\test\test.obj 1 “ > > I think I have included all the additional include directories in in visual > studio. Have I done something wrong ? > > > This is my code: > “ > #include "stdafx.h" > #include <limits> > #include <new> > #include <cstdint> > #include <memory> > #include "arrow/util/visibility.h" > #include "arrow/memory_pool.h" > #include "arrow/array.h" > #include "arrow/allocator.h" > #include <algorithm> > #include <type_traits> > > using arrow::Int64Builder; > > int main() > { > arrow::default_memory_pool(); > return 0; > } > ” > > > > Thanx for your time.