[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem compiling ddd-3.2.1, PannedGE.C
From: |
Andreas Zeller |
Subject: |
Re: Problem compiling ddd-3.2.1, PannedGE.C |
Date: |
22 Nov 2000 12:36:48 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
Hi!
James Foley <foley@shore.net> writes:
> I'm having problem building ddd on my RedHat Linux system.
> g++ is giving the compile error below. The version
> numbers involved are:
>
> ddd-3.2.1
> lesstif-0.91.4-1
> g++ 2.96
> Linux version 2.2.16-22
>
> Thanks in advance for any help,
>
> - Jim Foley
> foley@shore.net
>
> c++ -DHAVE_CONFIG_H -DNDEBUG -O2 -g -W -Wall -trigraphs -c -I. -I. -I./..
> -isystem /usr/X11R6/include -o PannedGE.o PannedGE.C
> PannedGE.C: In function `void __static_initialization_and_destruction_0
> (int, int)':
> PannedGE.C:88: non-lvalue in unary `&'
> make[1]: *** [PannedGE.o] Error 1
Please try the included patch and let me know whether it works:
Index: ddd/PannedGEP.h
===================================================================
RCS file: /cvsroot/ddd/ddd/ddd/PannedGEP.h,v
retrieving revision 1.10
diff -u -r1.10 PannedGEP.h
--- ddd/PannedGEP.h 1999/08/19 11:27:45 1.10
+++ ddd/PannedGEP.h 2000/11/22 11:36:21
@@ -2,6 +2,7 @@
// Panned Graph Editor (private part)
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
+// Copyright (C) 2000 Universitaet Passau, Germany.
// Written by Andreas Zeller <zeller@gnu.org>.
//
// This file is part of DDD.
@@ -54,7 +55,7 @@
XtPointer extension;
} PannedGraphEditClassPart;
-typedef struct _GraphEditClassRec {
+typedef struct _PannedGraphEditClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
PortholeClassPart porthole_class;
Greetings,
Andreas
--
Andreas Zeller Universitaet Passau
http://www.fmi.uni-passau.de/st/staff/zeller/