Visual Studio 2010 cannot find cstddef

I am trying to compile a C ++ solution in VS 2010, but for some reason it cannot find the standard libraries.

I include like this:

#include <cstddef>

      

VS returns error like this:

main.cpp(10): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory

      

However, I check my install directory and it is right where it should be (VC \ include) and that directory is listed in my included directories in the project settings (including $ (VCInstallDir)).

Any ideas why this is happening and how I can fix it?

+3


source to share


1 answer


Try using #include <stddef.h>

this instead. However, MSVC 10 should have <cstddef>

: msdn



However, as captain-obvlious pointed out, this may require additional changes to your code.

0


source







All Articles