ethz-asl / voxgraph

Voxblox-based Pose graph optimization
BSD 2-Clause "Simplified" License
521 stars 69 forks source link

Fix/static linker error #38

Closed Schmluk closed 4 years ago

Schmluk commented 4 years ago

@victorreijgwart Fixed the static member linker error. The reason for is that inline static variable definition is only allowed in C++17 or after (similar to normal static members), whereas your cmakelists contains std=c++11. Depending on the compiler optimization, it might however auto-generate these or maybe you have some other specifications for your build, this is potentially why it didn't show up on your machine. Anyway, I added the standard c++11 definition to the .cpp. Cf.

victorreijgwart commented 4 years ago

Thank you Lukas!