LSTS / dune

DUNE: Unified Navigation Environment
Other
111 stars 119 forks source link

Windows compilation #214

Closed zepinto closed 4 years ago

zepinto commented 4 years ago

Currently, DUNE fails to compile in windows for trying to use 'unsigned long long' types:

libSimulators.StreamVelocity.a(ModelDataStreamGenerator.cpp.obj):ModelDataStreamGenerator.cpp:(.text+0x62b): undefined reference to `std::vector<unsigned long long, std::allocator<unsigned long long> > DUNE::Parsers::HDF5Reader::getAttribute<unsigned long long>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const' collect2: error: ld returned 1 exit status.

MinGW cross-compilation toolchain (for testing):

mcpca commented 4 years ago

Just pushed a fix to bugfix/hdf5-win, I'm able to build on mingw and x86_64 Linux. Could you confirm that it works for you?

zepinto commented 4 years ago

Yes, this fixes the problem. Will merge to master.