Xref: news-dnh.mv.net comp.os.msdos.djgpp:3319 Path: news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!gatech2!news.mathworks.com!news.kei.com!bloom-beacon.mit.edu!satisfied.apocalypse.org!news2.near.net!newshost.williams.edu!newshost.williams.edu!not-for-mail From: 96kfd AT williams DOT edu (der tanzende Tigger) Newsgroups: comp.os.msdos.djgpp Subject: multiply defined methods in djgpp g++ Date: 16 Nov 1995 23:19:00 -0500 Organization: Williams College, Williamstown MA Lines: 38 Nntp-Posting-Host: bigbird.cc.williams.edu To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp I am doing some cross-platform compiling with gcc 2.7.0 (SunOS) and gcc 2.6.3 (djgpp 1.12). The object files compile without any errors on both, and the Sun program links and runs. When djgpp gets to gcc -o planner *.obj -lgpp -lm it gives streams of error messages that look like obsdb.cc(.text+0xb6): multiple definition of `Observatory::DST(void)' gof.cc(.text+0xb6): first defined here obsdb.cc(.text+0xc6): multiple definition of `ODB::NumRecords(void)' gof.cc(.text+0xc6): first defined here obsdb.cc(.text+0xd4): multiple definition of `ODB::FirstRecord(void)' gof.cc(.text+0xd4): first defined here obsdb.cc(.text+0xe4): multiple definition of `ODB::CurrentRecord(void)' gof.cc(.text+0xe4): first defined here obsdb.cc(.text+0xf4): multiple definition of `ODB::LastRecord(void)' gof.cc(.text+0xf4): first defined here observ.cc(.text+0x0): multiple definition of `Record::Key(void)' apsidal.cc(.text+0x0): first defined here observ.cc(.text+0xe): multiple definition of `Record::Type(void)' apsidal.cc(.text+0xe): first defined here observ.cc(.text+0x1e): multiple definition of `Record::Next(void)' apsidal.cc(.text+0x1e): first defined here observ.cc(.text+0x2e): multiple definition of `Record::Prev(void)' apsidal.cc(.text+0x2e): first defined here observ.cc(.text+0x3e): multiple definition of `Record::Next(Record *)' apsidal.cc(.text+0x3e): first defined here observ.cc(.text+0x4c): multiple definition of `Record::Prev(Record *)' basically all of the methods (there are many more lines) seem to be multiply defined. This never shows up under SunOS and all it does is compile the 13 object files and then link, nothing fancy. Any ideas? --kd