[Bug c++/50423] error: ‘getpid’ was not declared in this scope
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 15 18:05:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50423
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-15 18:01:34 UTC ---
This is expected you are not including unistd.h in your source which is
required if you want to use getpid. It was a bug before GCC 4.7 that some of
the C++ headers included that header file.
More information about the Gcc-bugs
mailing list