Mail Archives: djgpp/1997/03/26/08:20:22
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 *
*****************************************************************
- Raw text -