Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The error was thrown from the gpp-compiler package. This issue has already been reported. #405

Open
7bhainikhil opened this issue Jan 30, 2022 · 1 comment

Comments

@7bhainikhil
Copy link

In file included from c:\mingw\include\wchar.h:61:0,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\cwchar:44,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\bits\postypes.h:40,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iosfwd:40,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ios:38,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\ostream:38,
from c:\mingw\lib\gcc\mingw32\6.3.0\include\c++\iostream:39,
from F:\Apna college\C++ full course\demo.cpp:1:
c:\mingw\include\wctype.h:87:20: fatal error: stddef.h: No such file or directory
#include <stddef.h>
^
compilation terminated.

@ItzzExcel
Copy link

ItzzExcel commented Sep 26, 2022

You are trying to compile in C++, the problem you have is that library: stddef.h is only for C, not for C++. I hope I've helped.

If you want to include that library in C++, use cstddef.

Reference: https://en.wikibooks.org/wiki/C_Programming/stddef.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants