'MessageBox' in namespace 'tgui' does not name a type
Under windows - MinGW the class name tgui::MessageBox conflicts with MinGW's MessageBox Winapi defines.
The solution i tried is the following:
1. Go to winuser.h of the compiler directory and comment out the
2.
On the project header file.
With this workaround i managed to get it working without any error-warning. Is this known or am i doing something wrong with my includes?
Also
Is this normal?
Under windows - MinGW the class name tgui::MessageBox conflicts with MinGW's MessageBox Winapi defines.
The solution i tried is the following:
1. Go to winuser.h of the compiler directory and comment out the
Code Select
#define MessageBox __MINGW_NAME_AW(MessageBox) and Code Select
#define MessageBoxEx __MINGW_NAME_AW(MessageBoxEx)2.
Code Select
#undef MessageBox
#undef MessageBoxA
#undef MessageBoxW
On the project header file.
With this workaround i managed to get it working without any error-warning. Is this known or am i doing something wrong with my includes?
Also
Code Select
tgui::MessageBox::setSize(float,float); doesn't do anything unless it's called afterCode Select
tgui::MessageBox::addButton(sf::String&);Is this normal?