2011-01-26 11 views
0

DEFAULTLIB wxWidgetsのは、私は非常に単純なコードと小さなプロジェクトを持っています。実際には、次のようにwxFrameを作成します。「MSVCRT」競合の問題だから、

wxFrame(NULL, -1, title, wxPoint(-1, -1), wxSize(380, 220)) 

私のコードには何の問題もありません。

IMPLEMENT_APP(App); 

アプリです::だから

class App: public wxApp 

、私はそれを行うと私はコンパイル打ったとき、私は次のエラーがあります。

 
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library 
1>CApp.obj : warning LNK4248: unresolved typeref token (01000019) for 'wxVideoMode'; image may not run 
1>CLoadingFrame.obj : warning LNK4248: unresolved typeref token (01000019) for 'wxToolTip'; image may not run 
1>CLoadingFrame.obj : warning LNK4248: unresolved typeref token (0100001A) for 'wxDropTarget'; image may not run 
1>CLoadingFrame.obj : error LNK2020: unresolved token (0A000DB2) "int g_isPainting" ([email protected]@3HA) 
1>CApp.obj : error LNK2020: unresolved token (0A000DBE) "int g_isPainting" ([email protected]@3HA) 
1>CLoadingFrame.obj : error LNK2028: unresolved token (0A000DB4) "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" ([email protected]@[email protected]) referenced in function "protected: void __thiscall wxShadowObjectFields_wxImplementation_HashTable::ResizeTable(unsigned int)" ([email protected][email protected]@[email protected]) 
1>CApp.obj : error LNK2028: unresolved token (0A000DC0) "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" ([email protected]@[email protected]) referenced in function "protected: void const * __thiscall wxVectorBase::GetItem(unsigned int)const " ([email protected]@@[email protected]) 
1>CApp.obj : error LNK2019: unresolved external symbol "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" ([email protected]@[email protected]) referenced in function "protected: void const * __thiscall wxVectorBase::GetItem(unsigned int)const " ([email protected]@@[email protected]) 
1>CLoadingFrame.obj : error LNK2001: unresolved external symbol "void __cdecl wxOnAssert(char const *,int,char const *,char const *,char const *)" ([email protected]@[email protected]) 
1>CApp.obj : error LNK2001: unresolved external symbol "int g_isPainting" ([email protected]@3HA) 
1>CLoadingFrame.obj : error LNK2001: unresolved external symbol "int g_isPainting" ([email protected]@3HA) 
1>CApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssertFailure(char const *,int,char const *,char const *,char const *)" ([email protected]@@[email protected]) 
1>CApp.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wxAppConsole::OnAssert(char const *,int,char const *,char const *)" ([email protected]@@[email protected]) 
1>D:\WickedLauncher\WickedLauncherv2\Debug\WickedLauncherv2.exe : fatal error LNK1120: 8 unresolved externals 

を、私はこの行を行う際に問題がoccures私はどんな助けもありがとう!

よろしくお願いいたします。 g_isPainting定義されて

+0

C++とVisual Studioを使用しているようです。あれは正しいですか?あなたは、デバッグまたはリリースビルドをしていますか?すべてのwxWidgetsライブラリが一致していることを確認しましたか(デバッグかリリースか)? IMPLEMENT_APP(App)をコメントアウトすると言っていますか?あなたのアプリケーションは正常にリンクしますか? – ravenspoint

答えて

0

wxAppConsoleのリンカーに正しいライブラリを追加しましたか?

+0

私はg_isPaintingを定義していないので、wxWidgets内になければなりません。そして、正確には、「適切なライブラリをリンカに追加した」ということを意味します。私はドキュメンテーションで言われたようにすべてを構成しました。私はすでにうまくいったものを集めました。 – OneShotKillah