From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: rhide link giving strange errors Date: Wed, 26 Mar 1997 11:45:13 +0100 Organization: TU Chemnitz-Zwickau Lines: 35 Message-ID: <3338FE39.1FE@Mathematik.tu-chemnitz.de> References: <3338E2F8 DOT 7128 AT geocities DOT com> NNTP-Posting-Host: env.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Skye wrote: > > Produces the following errors in RHIDE: > > Compiling: test.cpp > no errors > Creating: test.exe > Error: test.o: In function 'bb::set(int)': > test.cc(21) Error:multiple definition of 'bb::set(int)' > o:test.cc(21) Error:first defined here > Error: test.o: In function 'bb::get(void)': > test.cpp(26) Error: multiple definition of 'bb::get(void)' > o:test.cc(26) Error: first defined here > Error: test.o: In Function 'main': > test.cc(31) Error: multiple definition of 'main' > o:cpptest.cc(31) Error: first defined here From where comes cpptest.cc (or cpptest.cpp)? How do you do this with RHIDE? Do you have a project opened? Which files are part of that project? The above errors show, that there are multiple object files are linked to the executable and in that case the errors are probably normal when these functions defined in multiple file. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************