Bonjour à tous.
Je cherche donc à installer la dernière version à ce jour de wxWidgets avec VC++.
Pour cela je suis le guide indiqué ici
[url=http://wiki.wxwidgets.org/wiki.pl?MSVC_Setup_Guide_For_Wx_2.5.4_And_Later]http://wiki.wxwidgets.org/wiki.pl?MSVC_Set...2.5.4_And_Later[/url]
seulement lors de la compilation de la librairie j'ai ces erreurs:
[code]Linking...
Creating library ..\..\lib\vc_dll\wxmswuniv26u_xrc.lib and object
..\..\lib\vc_dll\wxmswuniv26u_xrc.exp
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::GetValue(void)const "
(?GetValue@wxToggleButton@@UBE_NXZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::SetValue(bool)"
(?SetValue@wxToggleButton@@UAEX_N@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::Command(class wxCommandEvent &)"
(?Command@wxToggleButton@@UAEXAAVwxCommandEvent@@@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::MSWCommand(unsigned int,unsigned short)"
(?MSWCommand@wxToggleButton@@UAE_NIG@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual unsigned long __thiscall wxToggleButton::MSWGetStyle(long,unsigned
long *)const " (?MSWGetStyle@wxToggleButton@@MBEKJPAK@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual class wxSize __thiscall wxToggleButton::DoGetBestSize(void)const "
(?DoGetBestSize@wxToggleButton@@MBE?AVwxSize@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual enum wxBorder __thiscall wxToggleButton::GetDefaultBorder(void)const
" (?GetDefaultBorder@wxToggleButton@@MBE?AW4wxBorder@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
class wxClassInfo * __thiscall wxToggleButton::GetClassInfo(void)const "
(?GetClassInfo@wxToggleButton@@UBEPAVwxClassInfo@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: bool __thiscall wxToggleButton::Create(class
wxWindow *,int,class wxString const &,class wxPoint const &,class wxSize
const &,long,class wxValidator const &,cla
ss wxString const &)"
(__imp_?Create@wxToggleButton@@QAE_NPAVwxWindow@@HABVwxString@@ABVwxPoint@@ABVwxSize@@JABVwxValidator@@1@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) const wxToggleButton::`vftable'{for
`wxInputConsumer'}" (__imp_??_7wxToggleButton@@6BwxInputConsumer@@@)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) const wxToggleButton::`vftable'{for `wxControlBase'}"
(__imp_??_7wxToggleButton@@6BwxControlBase@@@)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
wxToggleButton::~wxToggleButton(void)" (__imp_??1wxToggleButton@@UAE@XZ)
..\..\lib\vc_dll\wxmswuniv26u_xrc_vc_custom.dll : fatal error LNK1120: 12
unresolved externals
Error executing link.exe.
wxmswuniv26u_xrc_vc_custom.dll - 13 error(s), 0 warning(s)
--------------------Configuration: xrc - Win32 DLL Universal Unicode
Debug--------------------
Linking...
Creating library ..\..\lib\vc_dll\wxmswuniv26ud_xrc.lib and object
..\..\lib\vc_dll\wxmswuniv26ud_xrc.exp
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::GetValue(void)const "
(?GetValue@wxToggleButton@@UBE_NXZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::SetValue(bool)"
(?SetValue@wxToggleButton@@UAEX_N@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::Command(class wxCommandEvent &)"
(?Command@wxToggleButton@@UAEXAAVwxCommandEvent@@@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::MSWCommand(unsigned int,unsigned short)"
(?MSWCommand@wxToggleButton@@UAE_NIG@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual unsigned long __thiscall wxToggleButton::MSWGetStyle(long,unsigned
long *)const " (?MSWGetStyle@wxToggleButton@@MBEKJPAK@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual class wxSize __thiscall wxToggleButton::DoGetBestSize(void)const "
(?DoGetBestSize@wxToggleButton@@MBE?AVwxSize@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual enum wxBorder __thiscall wxToggleButton::GetDefaultBorder(void)const
" (?GetDefaultBorder@wxToggleButton@@MBE?AW4wxBorder@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
class wxClassInfo * __thiscall wxToggleButton::GetClassInfo(void)const "
(?GetClassInfo@wxToggleButton@@UBEPAVwxClassInfo@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: bool __thiscall wxToggleButton::Create(class
wxWindow *,int,class wxString const &,class wxPoint const &,class wxSize
const &,long,class wxValidator const &,cla
ss wxString const &)"
(__imp_?Create@wxToggleButton@@QAE_NPAVwxWindow@@HABVwxString@@ABVwxPoint@@ABVwxSize@@JABVwxValidator@@1@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
wxToggleButton::wxToggleButton(void)" (__imp_??0wxToggleButton@@QAE@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class wxClassInfo
wxToggleButton::ms_classInfo"
(__imp_?ms_classInfo@wxToggleButton@@2VwxClassInfo@@A)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
wxToggleButton::~wxToggleButton(void)" (__imp_??1wxToggleButton@@UAE@XZ)
..\..\lib\vc_dll\wxmswuniv26ud_xrc_vc_custom.dll : fatal error LNK1120: 12
unresolved externals
Error executing link.exe.
wxmswuniv26ud_xrc_vc_custom.dll - 13 error(s), 0 warning(s)
--------------------Configuration: xrc - Win32 DLL Universal
Release--------------------
Linking...
Creating library ..\..\lib\vc_dll\wxmswuniv26_xrc.lib and object
..\..\lib\vc_dll\wxmswuniv26_xrc.exp
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::GetValue(void)const "
(?GetValue@wxToggleButton@@UBE_NXZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::SetValue(bool)"
(?SetValue@wxToggleButton@@UAEX_N@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::Command(class wxCommandEvent &)"
(?Command@wxToggleButton@@UAEXAAVwxCommandEvent@@@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::MSWCommand(unsigned int,unsigned short)"
(?MSWCommand@wxToggleButton@@UAE_NIG@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual unsigned long __thiscall wxToggleButton::MSWGetStyle(long,unsigned
long *)const " (?MSWGetStyle@wxToggleButton@@MBEKJPAK@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual class wxSize __thiscall wxToggleButton::DoGetBestSize(void)const "
(?DoGetBestSize@wxToggleButton@@MBE?AVwxSize@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual enum wxBorder __thiscall wxToggleButton::GetDefaultBorder(void)const
" (?GetDefaultBorder@wxToggleButton@@MBE?AW4wxBorder@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
class wxClassInfo * __thiscall wxToggleButton::GetClassInfo(void)const "
(?GetClassInfo@wxToggleButton@@UBEPAVwxClassInfo@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: bool __thiscall wxToggleButton::Create(class
wxWindow *,int,class wxString const &,class wxPoint const &,class wxSize
const &,long,class wxValidator const &,cla
ss wxString const &)"
(__imp_?Create@wxToggleButton@@QAE_NPAVwxWindow@@HABVwxString@@ABVwxPoint@@ABVwxSize@@JABVwxValidator@@1@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) const wxToggleButton::`vftable'{for
`wxInputConsumer'}" (__imp_??_7wxToggleButton@@6BwxInputConsumer@@@)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) const wxToggleButton::`vftable'{for `wxControlBase'}"
(__imp_??_7wxToggleButton@@6BwxControlBase@@@)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
wxToggleButton::~wxToggleButton(void)" (__imp_??1wxToggleButton@@UAE@XZ)
..\..\lib\vc_dll\wxmswuniv26_xrc_vc_custom.dll : fatal error LNK1120: 12
unresolved externals
Error executing link.exe.
wxmswuniv26_xrc_vc_custom.dll - 13 error(s), 0 warning(s)
--------------------Configuration: xrc - Win32 DLL Universal
Debug--------------------
Linking...
Creating library ..\..\lib\vc_dll\wxmswuniv26d_xrc.lib and object
..\..\lib\vc_dll\wxmswuniv26d_xrc.exp
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::GetValue(void)const "
(?GetValue@wxToggleButton@@UBE_NXZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::SetValue(bool)"
(?SetValue@wxToggleButton@@UAEX_N@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall wxToggleButton::Command(class wxCommandEvent &)"
(?Command@wxToggleButton@@UAEXAAVwxCommandEvent@@@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
bool __thiscall wxToggleButton::MSWCommand(unsigned int,unsigned short)"
(?MSWCommand@wxToggleButton@@UAE_NIG@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual unsigned long __thiscall wxToggleButton::MSWGetStyle(long,unsigned
long *)const " (?MSWGetStyle@wxToggleButton@@MBEKJPAK@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual class wxSize __thiscall wxToggleButton::DoGetBestSize(void)const "
(?DoGetBestSize@wxToggleButton@@MBE?AVwxSize@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "protected:
virtual enum wxBorder __thiscall wxToggleButton::GetDefaultBorder(void)const
" (?GetDefaultBorder@wxToggleButton@@MBE?AW4wxBorder@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol "public: virtual
class wxClassInfo * __thiscall wxToggleButton::GetClassInfo(void)const "
(?GetClassInfo@wxToggleButton@@UBEPAVwxClassInfo@@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: bool __thiscall wxToggleButton::Create(class
wxWindow *,int,class wxString const &,class wxPoint const &,class wxSize
const &,long,class wxValidator const &,cla
ss wxString const &)"
(__imp_?Create@wxToggleButton@@QAE_NPAVwxWindow@@HABVwxString@@ABVwxPoint@@ABVwxSize@@JABVwxValidator@@1@Z)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
wxToggleButton::wxToggleButton(void)" (__imp_??0wxToggleButton@@QAE@XZ)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static class wxClassInfo
wxToggleButton::ms_classInfo"
(__imp_?ms_classInfo@wxToggleButton@@2VwxClassInfo@@A)
xh_tglbtn.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual __thiscall
wxToggleButton::~wxToggleButton(void)" (__imp_??1wxToggleButton@@UAE@XZ)
..\..\lib\vc_dll\wxmswuniv26d_xrc_vc_custom.dll : fatal error LNK1120: 12
unresolved externals
Error executing link.exe.
wxmswuniv26d_xrc_vc_custom.dll - 13 error(s), 0 warning(s)[/code]
Ensuite, quand j'essai de compiler le Hello World fournit ici
[url=http://wiki.wxwidgets.org/wiki.pl?Hello_World]http://wiki.wxwidgets.org/wiki.pl?Hello_World[/url]
J'obtiens les erreurs suivantes:
[code]Linking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _exit already defined in
LIBCD.lib(crt0dat.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in
LIBCD.lib(memmove.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _tolower already defined in
LIBCD.lib(tolower.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _toupper already defined in
LIBCD.lib(toupper.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strtol already defined in
LIBCD.lib(strtol.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strtoul already defined in
LIBCD.lib(strtol.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __vsnprintf already defined in
LIBCD.lib(vsnprint.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strstr already defined in
LIBCD.lib(strstr.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _abort already defined in
LIBCD.lib(abort.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncpy already defined in
LIBCD.lib(strncpy.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __snprintf already defined in
LIBCD.lib(snprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fflush already defined in
LIBCD.lib(fflush.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strchr already defined in
LIBCD.lib(strchr.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncmp already defined in
LIBCD.lib(strncmp.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fclose already defined in
LIBCD.lib(fclose.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __get_osfhandle already defined in
LIBCD.lib(osfinfo.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in
LIBCD.lib(sprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __close already defined in
LIBCD.lib(close.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __write already defined in
LIBCD.lib(write.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __commit already defined in
LIBCD.lib(commit.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _calloc already defined in
LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __CrtSetDbgFlag already defined in
LIBCD.lib(dbgheap.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
libs; use /NODEFAULTLIB:library
wxmsw26d_core.lib(app.obj) : error LNK2001: unresolved external symbol
__imp__InitCommonControls@0
wxmsw26d_core.lib(window.obj) : error LNK2001: unresolved external symbol
__imp___TrackMouseEvent@4
wxmsw26d_core.lib(statbr95.obj) : error LNK2001: unresolved external symbol
__imp__CreateStatusWindowA@16
wxmsw26d_core.lib(spinbutt.obj) : error LNK2001: unresolved external symbol
__imp__CreateUpDownControl@48
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_Create@20
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_Destroy@4
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_GetImageCount@4
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_GetIconSize@12
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_Add@12
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_AddMasked@12
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_ReplaceIcon@12
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_Replace@16
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_Remove@8
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_Draw@24
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_SetBkColor@8
wxmsw26d_core.lib(imaglist.obj) : error LNK2001: unresolved external symbol
__imp__ImageList_GetIcon@12
wxmsw26d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol
__imp__UuidToStringA@8
wxmsw26d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol
__imp__RpcStringFreeA@4
wxmsw26d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol
__imp__UuidCreate@4
wxmsw26d_core.lib(uuid.obj) : error LNK2001: unresolved external symbol
__imp__UuidFromStringA@8
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/hello2.exe : fatal error LNK1120: 21 unresolved externals[/code]
Quelqu'un peut il m'indiquer comment solutionner ce problème?
Des jours que je suis au point mort dans mon projet à cause de divers
problèmes de librairies que j'arrive pas à installer. Alors franchement
à l'aide.
Merci
