adamstark/Gist

unknown type name 'size_t'; did you mean '__gnu_cxx::size_t'? column: 70, line: 94

giuliomoro opened this issue · 4 comments

When building a file that includes MFCC.h.
size_t requires an #include <stddef.h>, or you can use std::size_t instead.

Ah, ok, thank you. Which platform is this on? I will likely add #include <stddef.h> as an include then

I'd suggest std::size_t (see my Pull Request).

That was on Debian Stretch, armv7, using clang++ 3.9. Similar error (but less verbose) with g++ 6.3.

Ok, excellent - I have now updated this on the develop branch. I'm not sure when I'll next be doing a master version, but soon I hope.

Hi, this came up in other source files when i was building them on Xenomai/Bela. I used using namespace std to resolve it, but that is just a third way to approach it.