Reputation: 1481
I have installed WxWidgets 3.1.1, added the WXWIN
environment variables, and used Build All
with the wx_vc15.sln
file. While trying to compile the following code:
#include <iostream>
#include <cstdlib>
#include <array>
#include <iomanip>
#include <ctime>
#include <wx/wx.h>
using std::cin;
using std::cout;
using std::endl;
int main()
{
}
I am hit with this error:
Error C1083 Cannot open include file: '../../../lib/vc_lib/mswd/wx/setup.h': No such file or directory
I go into [WXWIN root]\lib\vc_lib
, there are only mswu
and mswud
there. How come the error complains about something inside mswd
which doesnt exist? Could someone please help me? Thank you.
Upvotes: 2
Views: 2095
Reputation: 22688
You need to define UNICODE
and/or _UNICODE
in your project settings (which is normally the default for the new projects).
This is mentioned in the instructions for setting up your project.
Upvotes: 1