[EMAIL PROTECTED] writes:

> The following code compiles on g++ and not on gcc

Yes. Did you have a question?

Assuming your question was: "why does the following code compile with
'g++', but not with 'gcc'?", and further assuming that you are
using glibc (and probably compiling on Linux), the answer is: because
g++ adds -D_GNU_SOURCE by default, but gcc doesn't.

Add -D_GNU_SOURCE if you want to compile that code with 'gcc'
on Linux.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to