owl-project / owlExaBrick

Sample code for our "ExaBricks" Adaptive Mesh Refinement data renderer from our IEEE Vis paper
Apache License 2.0
5 stars 2 forks source link

Build error #1

Open pkestene opened 1 year ago

pkestene commented 1 year ago

Hi,

here are two minor build issues that seem to be related with compiler version (I'm using gnu 11 on my host, and cuda 12), and those minor issues can be fixed easily

ingowald commented 1 year ago

Leaving @szellmann to deal with the code itself, but one question: "std::strtok" doesn't sound right !? strtok is a posix C function, it shouldn't even know what a namespace is!?!? Might need to include string.h to get it, but it should never be in a std:: namespace? confused :)

pkestene commented 1 year ago

I think you need to either include <string.h> (C header, fine using strtok) or either include <cstring> (which brings back into std namespace the c function, and in that case, the full name is std::strtok).

I was suggesting to include <cstring>.