Redefinition error with g++

Jesse Steig wesei@hotmail.com
Sun Jan 16 08:46:00 GMT 2005


I'm running gcc version 3.2.2 [FreeBSD]

I'm compiling with g++ BinaryCell.cpp -o BinaryCell
and getting:
BinaryCell.cpp:14:redefinition of 'BinaryCell::BinaryCell()'
BinaryCell.cpp:14:'BinaryCell::BinaryCell' previously defined here
BinaryCell.cpp:14:no 'BinaryCell::BinaryCell()' member function declared in 
class 'BinaryCell"
BinaryCell.cpp:16:confused by earlier errors, bailing out
***Error code 1

I have the ifndef, define, endif's in my header files, and I can't seem to 
figure out why this error keeps popping up, so any help would be 
appreciated.




More information about the Gcc-help mailing list