pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/help C compilers also emit error messages that are ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d3e9098f7c3
branches: trunk
changeset: 537349:2d3e9098f7c3
user: rillig <rillig%pkgsrc.org@localhost>
date: Sun Jan 06 19:13:31 2008 +0000
description:
C compilers also emit error messages that are worth being explain.
diffstat:
mk/help/c.help | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diffs (20 lines):
diff -r bc961b7dc9b6 -r 2d3e9098f7c3 mk/help/c.help
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mk/help/c.help Sun Jan 06 19:13:31 2008 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: c.help,v 1.1 2008/01/06 19:13:31 rillig Exp $
+
+# This file contains typical error messages from C++ compilers and
+# instructions how to fix them properly.
+
+# === Invalid lvalue in increment ===
+#
+# Once upon a time, it was possible to say "((int)foo)++". With gcc4,
+# this no longer works, and now you have to say "foo = (int)foo + 1".
+#
+# This becomes more complicated in macros that access datastructures,
+# which involves much pointer arithmetics. A popular example is obstack,
+# a collection of "object stack macros". A patch for fixing that is in
+# devel/coconut/patches/patch-ab revision 1.1.
+#
+# Keywords: C lvalue increment obstack obstack_ptr_grow
Home |
Main Index |
Thread Index |
Old Index