wxHtmlWindow, error LNK2001



  • Hallo,
    ich versuche ein eifaches Programm zu schreiben. Beim Kompilieren wird aber die ganze Menge von Errors ausgegeben 😞 Ich habe wxWidgets 2.8.10 instaliert und angestellt, wie hier beschrieben ist: http://www.pronix.de/pronix-1144.html

    Wie könnte man die Fehler auflösen?

    Vielen Dank für eure Hilfe.

    #include "wx/wx.h" 
    #include "wx/html/htmlwin.h"
    
    class MyApp: public wxApp
    {
        virtual bool OnInit();
    };
    
    class MyFrame: public wxFrame
    {
    public:
    
        MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
    
        wxHtmlWindow *htmlwin;
        void OnQuit(wxCommandEvent& event);   
    
        DECLARE_EVENT_TABLE()
    };
    
    enum
    {
        ID_Quit = 1,
    };
    
    BEGIN_EVENT_TABLE(MyFrame, wxFrame)
        EVT_MENU(ID_Quit, MyFrame::OnQuit)
    END_EVENT_TABLE()
    
    IMPLEMENT_APP(MyApp)
    
    bool MyApp::OnInit()
    {
        MyFrame *frame = new MyFrame( _T("Hello World"), wxPoint(50,50), wxSize(450,340) );
        frame->Show(TRUE);
        SetTopWindow(frame);
        return TRUE;
    } 
    
    MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
    : wxFrame((wxFrame *)NULL, -1, title, pos, size)
    {
    	htmlwin = new wxHtmlWindow((wxWindow *)NULL, -1, wxDefaultPosition, wxDefaultSize, wxHW_DEFAULT_STYLE,"htmlWindow");	
    }
    
    void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
    {
        Close(TRUE);
    }
    
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual class wxEventHashTable & __thiscall wxHtmlWindow::GetEventHashTable(void)const " (?GetEventHashTable@wxHtmlWindow@@MBEAAVwxEventHashTable@@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual struct wxEventTable const * __thiscall wxHtmlWindow::GetEventTable(void)const " (?GetEventTable@wxHtmlWindow@@MBEPBUwxEventTable@@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxCursor __thiscall wxHtmlWindow::GetHTMLCursor(enum wxHtmlWindowInterface::HTMLCursor)const " (?GetHTMLCursor@wxHtmlWindow@@UBE?AVwxCursor@@W4HTMLCursor@wxHtmlWindowInterface@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::SetHTMLStatusText(class wxString const &)" (?SetHTMLStatusText@wxHtmlWindow@@UAEXABVwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::SetHTMLBackgroundImage(class wxBitmap const &)" (?SetHTMLBackgroundImage@wxHtmlWindow@@UAEXABVwxBitmap@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::SetHTMLBackgroundColour(class wxColour const &)" (?SetHTMLBackgroundColour@wxHtmlWindow@@UAEXABVwxColour@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxColour __thiscall wxHtmlWindow::GetHTMLBackgroundColour(void)const " (?GetHTMLBackgroundColour@wxHtmlWindow@@UBE?AVwxColour@@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxWindow * __thiscall wxHtmlWindow::GetHTMLWindow(void)" (?GetHTMLWindow@wxHtmlWindow@@UAEPAVwxWindow@@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxPoint __thiscall wxHtmlWindow::HTMLCoordsToWindow(class wxHtmlCell *,class wxPoint const &)const " (?HTMLCoordsToWindow@wxHtmlWindow@@UBE?AVwxPoint@@PAVwxHtmlCell@@ABV2@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual enum wxHtmlOpeningStatus __thiscall wxHtmlWindow::OnHTMLOpeningURL(enum wxHtmlURLType,class wxString const &,class wxString *)const " (?OnHTMLOpeningURL@wxHtmlWindow@@UBE?AW4wxHtmlOpeningStatus@@W4wxHtmlURLType@@ABVwxString@@PAV4@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::OnHTMLLinkClicked(class wxHtmlLinkInfo const &)" (?OnHTMLLinkClicked@wxHtmlWindow@@UAEXABVwxHtmlLinkInfo@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::SetHTMLWindowTitle(class wxString const &)" (?SetHTMLWindowTitle@wxHtmlWindow@@UAEXABVwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: void __thiscall wxHtmlWindow::Init(void)" (?Init@wxHtmlWindow@@IAEXXZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::OnInternalIdle(void)" (?OnInternalIdle@wxHtmlWindow@@UAEXXZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::OnLinkClicked(class wxHtmlLinkInfo const &)" (?OnLinkClicked@wxHtmlWindow@@UAEXABVwxHtmlLinkInfo@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::OnSetTitle(class wxString const &)" (?OnSetTitle@wxHtmlWindow@@UAEXABVwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::WriteCustomization(class wxConfigBase *,class wxString)" (?WriteCustomization@wxHtmlWindow@@UAEXPAVwxConfigBase@@VwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall wxHtmlWindow::ReadCustomization(class wxConfigBase *,class wxString)" (?ReadCustomization@wxHtmlWindow@@UAEXPAVwxConfigBase@@VwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall wxHtmlWindow::LoadPage(class wxString const &)" (?LoadPage@wxHtmlWindow@@UAE_NABVwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall wxHtmlWindow::SetPage(class wxString const &)" (?SetPage@wxHtmlWindow@@UAE_NABVwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: bool __thiscall wxHtmlWindow::Create(class wxWindow *,int,class wxPoint const &,class wxSize const &,long,class wxString const &)" (?Create@wxHtmlWindow@@QAE_NPAVwxWindow@@HABVwxPoint@@ABVwxSize@@JABVwxString@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual __thiscall wxHtmlWindow::~wxHtmlWindow(void)" (??1wxHtmlWindow@@UAE@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxClassInfo * __thiscall wxHtmlWindow::GetClassInfo(void)const " (?GetClassInfo@wxHtmlWindow@@UBEPAVwxClassInfo@@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual bool __thiscall wxHtmlWindowMouseHelper::OnCellClicked(class wxHtmlCell *,int,int,class wxMouseEvent const &)" (?OnCellClicked@wxHtmlWindowMouseHelper@@MAE_NPAVwxHtmlCell@@HHABVwxMouseEvent@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: virtual void __thiscall wxHtmlWindowMouseHelper::OnCellMouseHover(class wxHtmlCell *,int,int)" (?OnCellMouseHover@wxHtmlWindowMouseHelper@@MAEXPAVwxHtmlCell@@HH@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: __thiscall wxHtmlWindowMouseHelper::wxHtmlWindowMouseHelper(class wxHtmlWindowInterface *)" (??0wxHtmlWindowMouseHelper@@IAE@PAVwxHtmlWindowInterface@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxClassInfo * __thiscall wxHtmlFilter::GetClassInfo(void)const " (?GetClassInfo@wxHtmlFilter@@UBEPAVwxClassInfo@@XZ)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxString __thiscall wxHtmlFilterPlainText::ReadFile(class wxFSFile const &)const " (?ReadFile@wxHtmlFilterPlainText@@UBE?AVwxString@@ABVwxFSFile@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall wxHtmlFilterPlainText::CanRead(class wxFSFile const &)const " (?CanRead@wxHtmlFilterPlainText@@UBE_NABVwxFSFile@@@Z)".
    1>wxEx.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual class wxClassInfo * __thiscall wxHtmlFilterPlainText::GetClassInfo(void)const " (?GetClassInfo@wxHtmlFilterPlainText@@UBEPAVwxClassInfo@@XZ)".
    


  • mit einem Linker 😉



  • vielen Dank für die schnelle Abtwort 🙂 ich versuchte dem Linker mitzuteilen, dass er statische libs benutzen soll:

    Allgemeine Eigenschaften ->
    -> Konfigurationstyp -> Statische Bibliothek (.lib),
    -> Verwendung von MFC -> MFC in einer Statischen Bibliothek verwenden,
    ->Verwendung von ATL -> Statischer Link zu ATL,
    ->Zeichensatz -> Multi-Byte-Zeichensatz verwenden ...

    Jetzt habe ich aber eine Fehlermeldung: "Programm ...\Release\(ProejektName).lib kann nicht gestartet werden. Die angegebene Datei hat ein unbekantes oder nicht unterstütztes Binärformat"

    Habe ich was falsch eingestellt?



  • mit welchen Compiler wurden die *.lib erstellt?
    mit welchen Compiler/linker versuchst die lib's zu linken?


Anmelden zum Antworten