Hi @Mathias_Westerdahl I’m going to bump this one too. When making native extensions with C libs (much easier than with C++ for lua binding) Im getting the same problems. Simple example: sqlite3. If you use the amalgamated C source to use as a native extension, it wont build. And the “-std=c99” thats normally available doesnt appear to be working on the clang-13 being used.
Like @dapetcu21 I dont really want to build a bunch of different platform libs, just to be able to call C functions that should drop in? Bit puzzled about this.
Are there any compile options I could use to fix this? I have a couple of other projects in the pipe using C libs, and now Im a little concerned I will be spending a big chunk of time “converting” the source (I did this for other C source libs before).