16 Jul 03:09
Re: POSIX in g++
From: Ian Lance Taylor <iant <at> google.com>
Subject: Re: POSIX in g++
Newsgroups: gmane.comp.gcc.devel
Date: 2008-07-16 01:09:27 GMT
Subject: Re: POSIX in g++
Newsgroups: gmane.comp.gcc.devel
Date: 2008-07-16 01:09:27 GMT
"Peng Yu" <pengyu.ut <at> gmail.com> writes: I should have said in reply to your last message: this is the wrong mailing list for this question. Please take any followups to gcc-help <at> gcc.gnu.org. Thanks. > Isn't ANSI C++ a subset of POSIX C++. Why do I need to specify > _POSIX_SOURCE, _POSIX_C_SOURCE and -ansi? ANSI C is a subset of POSIX C (as far as I know C++ is not a part of POSIX). Using -ansi restricts you to ANSI C. Adding the POSIX defines tells the library to declare POSIX functions in the POSIX header files. > Would you please let me know what is the difference between the option > -ansi and -std? Please read the fine manual. Ian
RSS Feed