Compiling CVS v .2 for Linux
Posted: Sun Oct 10, 2004 6:42 pm
I've been trying to compile FO CVS and I keep running into trouble. Here's a list of problems (undefined reference messages for the first section omittted) and the "fixes" I applied. I suspect that my modified includes may be causing the linker error at the end:
-----------------
ProdCenter.h : #include <Meter.h> -> #include "Meter.h"
UniverseObject.h : #include <Universe.h> -> #include "Universe.h"
PopCenter.h : #include <Meter.h> -> #include "Meter.h"
Meter.h : #include <UniverseObject.h> -> #include "UniverseObject.h"
universe/Universe.cpp:713: error: invalid initialization of non-const reference of type 'Delauney::DTTriangle&' from a temporary of type 'Delauney::DTTriangle'
Universe.cpp 713: Delauney::DTTriangle &tri = Delauney::DTTriangle(); -> Delauney::DTTriangle tri = Delauney::DTTriangle();
universe/server-PopCenter.o(.text+0x13c): In function `PopCenter::PopCenter()':
: undefined reference to `Meter::Meter()'
----------------------------
I'm using gcc 3.4.2 and am running Fedora Core 2.91 (a test version). I have automake 1.9.2 and autoconf 2.59 and have been using autogen.sh to generate my configure script. Does anyone have suggestions for slogging all the way through this compile?
-----------------
ProdCenter.h : #include <Meter.h> -> #include "Meter.h"
UniverseObject.h : #include <Universe.h> -> #include "Universe.h"
PopCenter.h : #include <Meter.h> -> #include "Meter.h"
Meter.h : #include <UniverseObject.h> -> #include "UniverseObject.h"
universe/Universe.cpp:713: error: invalid initialization of non-const reference of type 'Delauney::DTTriangle&' from a temporary of type 'Delauney::DTTriangle'
Universe.cpp 713: Delauney::DTTriangle &tri = Delauney::DTTriangle(); -> Delauney::DTTriangle tri = Delauney::DTTriangle();
universe/server-PopCenter.o(.text+0x13c): In function `PopCenter::PopCenter()':
: undefined reference to `Meter::Meter()'
----------------------------
I'm using gcc 3.4.2 and am running Fedora Core 2.91 (a test version). I have automake 1.9.2 and autoconf 2.59 and have been using autogen.sh to generate my configure script. Does anyone have suggestions for slogging all the way through this compile?