Redefinition error with g++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux