Date: Thu, 9 Apr 98 02:37:54 +0200 From: Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> To: freebsd-hackers@FreeBSD.ORG Subject: Cryptic ld message (gcc bug?) Message-ID: <9804090037.AA28700@cabri.obs-besancon.fr>
next in thread | raw e-mail | index | archive | help
This happens when I compile with "c++ -g -O", but not with only "c++ -g" or only "c++ -O". What do this means ? ld: /tmp/ccLf96521.o: unexpected multiple definitions of symbol `this:V25', type 0x27 Ì:484352: Definition of symbol `this:V25' (multiply defined) ld: /tmp/ccLf96521.o: unexpected multiple definitions of symbol `this:V25', type 0x27 Ì:484352: Definition of symbol `this:V25' (multiply defined) Here is the source program (the error disapear if you remove the last 3 lines!): #include <math.h> class X { private: double **x; public: X () {}; ~X () {}; double data (int i, int j) {return x[i][j];} }; X *D; main (int argc, char **argv) { double e2, b; int i, j, i1, i2; D = new X; j = 20; double y[j]; i1 = 4; i2 = 8; e2 = 2; for (i = 0 ; i < j; i++) if (D->data (i, 1) < e2) break; for (i = i2; i < j; i++) { b = D->data(i, 0) - D->data(i1, 0); y[i] *= exp (b*b*3); } for (i = 0; i < i1; i++) { b = D->data(i, 0) - D->data(i1, 0); y[i] *= exp (b*b*3); } } Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9804090037.AA28700>