From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30268 invoked by alias); 8 Sep 2004 04:09:25 -0000 Mailing-List: contact xconq7-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: xconq7-owner@sources.redhat.com Received: (qmail 30170 invoked from network); 8 Sep 2004 04:09:23 -0000 Received: from unknown (HELO smtp812.mail.sc5.yahoo.com) (66.163.170.82) by sourceware.org with SMTP; 8 Sep 2004 04:09:23 -0000 Received: from unknown (HELO ?192.168.1.101?) (sampln@sbcglobal.net@67.123.174.46 with plain) by smtp812.mail.sc5.yahoo.com with SMTP; 8 Sep 2004 02:56:45 -0000 Subject: Re: Problem compiling new version of ai_plan_research From: Lincoln Peters To: Eric McDonald Cc: Xconq list In-Reply-To: <413E6590.60506@phy.cmich.edu> References: <1094607062.4338.57160.camel@localhost> <413E6590.60506@phy.cmich.edu> Content-Type: text/plain Message-Id: <1094612324.4338.58224.camel@localhost> Mime-Version: 1.0 Date: Wed, 08 Sep 2004 05:20:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg01139.txt.bz2 On Tue, 2004-09-07 at 18:51, Eric McDonald wrote: > Lincoln Peters wrote: > > > gcc -o xconq -g -O2 -ansi -pedantic -g -DHAVE_ACDEFS_H -I. -I./.. -I./../kernel -I./../missing -I/usr/include/tcl8.4 -I/usr/include/tcl8.4/tk-private/generic -I/usr/X11R6/include -L/usr/X11R6/lib tkunix.o ./libtkui.a ./libtkimf.a ../kernel/libconq.a ../kernel/libconqlow.a ../missing/libmissing.a -lXext -lXmu -lX11 -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 -L/usr/X11R6/lib -lX11 -ldl -lpthread -lieee -lm -ldl > > ../kernel/libconq.a(ai.o)(.text+0x4771): In function `ai_plan_research': > > /home/lincoln/Projects/xconq/xconq/kernel/ai.c:1840: undefined reference to `net_side_research' > > 'net_set_side_research' might work better. That much worked; I figured it out shortly after I sent the e-mail. > > > ../kernel/libconq.a(ai.o)(.text+0x4798):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1805: undefined reference to `ua_advance_needed_to_build' > > ../kernel/libconq.a(ai.o)(.text+0x47aa):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1810: undefined reference to `ua_advance_multiply_production' > > ../kernel/libconq.a(ai.o)(.text+0x47b9):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1811: undefined reference to `ua_advance_multiply_production' > > ../kernel/libconq.a(ai.o)(.text+0x47c8):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1816: undefined reference to `ua_advance_add_production' > > ../kernel/libconq.a(ai.o)(.text+0x47ed):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1812: undefined reference to `ua_advance_multiply_production' > > ../kernel/libconq.a(ai.o)(.text+0x4802):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1813: undefined reference to `ua_advance_multiply_production' > > 'ua_needed_to_build' not 'ua_advance_needed_to_build'. > Likewise with the others. > The "a" in "ua" stands for "advance". That sort of makes sense (I'd assumed that the names of the functions in the C code would be identical to the associated GDL tables, aside from prefixes such as "ua" and the use of underscores instead of dashes). It fixed some but not all of the errors. Se below: gcc -o xconq -g -O2 -ansi -pedantic -g -DHAVE_ACDEFS_H -I. -I./.. -I./../kernel -I./../missing -I/usr/include/tcl8.4 -I/usr/include/tcl8.4/tk-private/generic -I/usr/X11R6/include -L/usr/X11R6/lib tkunix.o ./libtkui.a ./libtkimf.a ../kernel/libconq.a ../kernel/libconqlow.a ../missing/libmissing.a -lXext -lXmu -lX11 -L/usr/lib -ltcl8.4 -L/usr/lib -ltk8.4 -L/usr/X11R6/lib -lX11 -ldl -lpthread -lieee -lm -ldl ../kernel/libconq.a(ai.o)(.text+0x47ad): In function `ai_plan_research': /home/lincoln/Projects/xconq/xconq/kernel/ai.c:1811: undefined reference to `ua_multiply_production' ../kernel/libconq.a(ai.o)(.text+0x47bc):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1812: undefined reference to `ua_multiply_production' ../kernel/libconq.a(ai.o)(.text+0x47cb):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1817: undefined reference to `ua_add_production' ../kernel/libconq.a(ai.o)(.text+0x47f0):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1813: undefined reference to `ua_multiply_production' ../kernel/libconq.a(ai.o)(.text+0x4805):/home/lincoln/Projects/xconq/xconq/kernel/ai.c:1814: undefined reference to `ua_multiply_production' collect2: ld returned 1 exit status make[1]: *** [xconq] Error 1 make[1]: Leaving directory `/home/lincoln/Projects/xconq/xconq/tcltk' make: *** [all-tkconq] Error 2 One thing I do notice about the remaining errors is that they all involve parts of the code that are (supposed to be) implemented but are not used in any existing game modules. Could that have something to do with the errors? --- Lincoln Peters I always had a repulsive need to be something more than human. -- David Bowie