Hello,
this is probably an extremely silly question but I've been trying to find the problem for a while now so here it goes. Given the following code....
MainFrame.h
wxTextWrapper.h
wxTextWrapper.c pp
I've left out a lot of stuff but these should be the important ones... the compiler is complaining about "multiple definition of `wxTextWrapper: :Wrap(wxWindow* , wxString const&, int)'".
It should probably be noted that the overall structure of my classes at the moment is:
1. DSVApp: includes LoginFrame and MainFrame
2a. LoginFrame
2b. MainFrame: includes wxTextWrapper
I'm having a hard time figuring out why I get this error, so any help is appreciated.
Rgds
// Joakim
this is probably an extremely silly question but I've been trying to find the problem for a while now so here it goes. Given the following code....
MainFrame.h
Code:
#include "wxTextWrapper.h"
Code:
class wxTextWrapper
{
public:
void Wrap(wxWindow *win, const wxString& text, int widthMax);
// there are a bunch of other methods here
};
Code:
#include "wxTextWrapper.h"
void wxTextWrapper::Wrap(wxWindow *win, const wxString& text, int widthMax)
{
// lots of code...
}
It should probably be noted that the overall structure of my classes at the moment is:
1. DSVApp: includes LoginFrame and MainFrame
2a. LoginFrame
2b. MainFrame: includes wxTextWrapper
I'm having a hard time figuring out why I get this error, so any help is appreciated.
Rgds
// Joakim
Comment