I am writing an application based on wxWidgets library. I had some classes which support application data. They use types as std::string, which shouldn’t be used in application written with wxWidgets lib.
E.g.
class SomeClass
{
private:
char name[80];
(.....)
public:
(.....)
};
Now I have something like that:
class SomeClass
{
private:
wxString name;
(.....)
public:
(.....)
};
(Yes, I know that char isn’t string – I decided to change char to string).
Compiler throws error:
‘wxString’ does not name a type
I tried to include file with class in many places, but result is always the same.
If compiler says the wxString is not declared then you must include the proper header.
Declare this line, make sure it’s NOT inside of
#ifndef WX_PRECOMP.