VS中的C ++的wxWidgets错误

时间:2014-07-02 09:28:26

标签: c++ visual-studio-2013 wxwidgets

大家好我最近在visual studio上构建了wxwidgets,并试图编译我在网上找到的代码以测试输出

  #include <wx/app.h>
  #include <wx/frame.h>

  class OurApp : public wxApp
{
bool OnInit()
{
    wxFrame* frame = new wxFrame(NULL, wxID_ANY, "Our First App");
    frame->Show();
    return true;
}
       };

   IMPLEMENT_APP(OurApp)

但我收到了这些错误

    Error   4   error LNK1169: one or more multiply defined symbols found   
    Error   2   error LNK2005: "class wxAppConsole * __cdecl wxCreateApp(void)" (?wxCreateApp@@YAPAVwxAppConsole@@XZ) already defined in minimal.obj
    Error   3   error LNK2005: "class wxAppInitializer wxTheAppInitializer" (?wxTheAppInitializer@@3VwxAppInitializer@@A) already defined in minimal.obj    
    Error   1   error LNK2005: _WinMain@16 already defined in minimal.obj

它们是什么以及如何修复它们?

0 个答案:

没有答案