Erik Hofman <[EMAIL PROTECTED]> writes: > Update of /var/cvs/FlightGear-0.9/FlightGear/src/Main > In directory baron:/tmp/cvs-serv17258 > > Modified Files: > metar_main.cxx > Log Message: > I guess there was something in Alex' patch that wasn't all that fortunate. > > Index: metar_main.cxx > =================================================================== > RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Main/metar_main.cxx,v > retrieving revision 1.9 > retrieving revision 1.10 > diff -C2 -r1.9 -r1.10 > *** metar_main.cxx 25 Oct 2005 13:49:57 -0000 1.9 > --- metar_main.cxx 25 Oct 2005 16:28:46 -0000 1.10 > *************** > *** 28,32 **** > #include <simgear/environment/metar.hxx> > #include <simgear/structure/exception.hxx> > - #include <simgear/scene/sky/sky.hxx> > > using namespace std; > --- 28,31 ---- > *************** > *** 486,491 **** > } > > - SGSky* thesky = new SGSky; > - > int main(int argc, char *argv[]) > { > --- 485,488 ----
sorry about this, but when i link against shared libraries i need this otherwise i get: g++ -DPKGLIBDIR=\"/usr/local/share/FlightGear\" -g -O2 -D_REENTRANT -L/usr/X11R6/lib -L/usr/local/lib -o metar metar_main.o -lsgenvironment -lsgio -lsgbucket -lsgmisc -lsgstructure -lsgdebug -lsgprops -lsgxml -lsgserial -lsgsound -lsgsky -lsgmaterial -lsgscreen -lsgmath -lplibssg -lplibsg -lglut -lGLU -lGL -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -ldl -lm -lplibnet -lplibul -lz -ldl -lm -lexpat -lalut -lopenal -ldl -lm -lpthread -lalut /usr/local/lib/libsgsky.so: undefined reference to `thesky' collect2: ld returned 1 exit status i am not sure exactly _why_ it works for static libraries. anyway, this doesn't affect anybody else (unless they use shared libraries like me). --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | _______________________________________________ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d