Hello,
I am working on a game using Urho3D and in this game, I need to display informations through the use of the Urho3D::MessageBox class.
I am creating an instance of a MessageBox with the following statement:
XMLFile *layout = mResourcesCache->GetResource<XMLFile>("UI/SpaceMsgBox.xml");
XMLFile *style = mResourcesCache->GetResource<XMLFile>("UI/SpaceStyle.xml");
Urho3D::MessageBox *errMsgBox = new Urho3D::MessageBox(context_, String("No joystick found!\nClick OK to exit."), String("Error message"), layout, style);
Building and running on Linux works perfectly.
However, I am trying to build on Windows as well and then, at link time, I get the following error message:
undefined reference to ’Urho3D::MessageBoxA::MessageBoxA(Urho3D::Context*, Urho3D::String const&, …)
It looks like it has something to deal with the MessageBoxA() method defined in the win32 API, but I am not sure.
I do not really understand where this reference to MessageBoxA comes from, it is quite confusing.
I would just like to know if anyone else already experienced this issue, and if yes, how to get rid of it.
Feel free to ask me for more details if relevant.
Thanks!
Charles