xoofx / CppAst.NET

CppAst is a .NET library providing a C/C++ parser for header files powered by Clang/libclang with access to the full AST, comments and macros
BSD 2-Clause "Simplified" License
501 stars 66 forks source link

[Q] `'stddef.h' file not found` error #54

Closed dehghani-mehdi closed 2 years ago

dehghani-mehdi commented 2 years ago

I got 1 warning and 1 error as follow:

warning: argument unused during compilation: '-fsyntax-only'

error: 'stddef.h' file not found

Is this related to CppAst or should I install something else to fix the error?

xoofx commented 2 years ago

The error is because stdef.h is not in your include path. You might have to tweak it by passing relevant include directories for C/C++ std headers.

The warning is generated by clang, couldn't get rid of it but it's now filtered in 0.8.0+