I'm using DJGPP (gcc) with the RHIDE editor for compiling. However, whenever I try to use classes I get multiple definition errors...
For example (several imaginary files):
aVar = 0;
void useless::aFunction(int newVal);
aVar = newVal;
Pretty useless class mmm? ^_^
Each file will compile fine, but when I try to link the source files together, I get an error something like:
Error: useless.o: In function 'useless::useless(void)':
useless.cpp(3) Error: multiple definition of 'useless::useless(void)'
o:useless.cpp(3) Error: first defined here
for _every_ function in _every_ class. o_O What confuses me is that they compile and link fine with Bloodshed Dev-C++, so... What am I doing wrong? Any help would be greatly appreciated.
Eck! Sorry for the long winded post.. Thanks in advance.
Edited by - fairie on July 18, 2001 2:46:46 AM