Membres inscrits :668
Membres en ligne : 0
Invités en ligne : 9


|
| Conversation : wxWidgets + Visual Studio 2005 (linkage) |
Warzer (Membre)
Inscrit le : 05-10-2007
Messages: 283
Snippets: 4
Tutoriels: 0
Hors ligne |
Salut,
J'ai un petit soucis de compilation sous VS 2005, en effet après avoir compiler les librairies et en utilisant l'assistant nouveau projet du site je n'arrive toujours pas à compiler correctement.
Code: Compiling... RaytracerTree.cpp RaytracerApp.cpp MainFrame.cpp Linking... MainFrame.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxGaugeNameStr" (__imp_?wxGaugeNameStr@@3QBGB) referenced in function "public: __cdecl MainFrame::MainFrame(class wxFrame *,class wxString const &)" (??0MainFrame@@QEAA@PEAVwxFrame@@AEBVwxString@@@Z) MainFrame.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxStatusLineNameStr" (__imp_?wxStatusLineNameStr@@3QBGB) referenced in function "public: __cdecl MainFrame::MainFrame(class wxFrame *,class wxString const &)" (??0MainFrame@@QEAA@PEAVwxFrame@@AEBVwxString@@@Z) MainFrame.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl wxString::wxString(unsigned short const *)" (__imp_??0wxString@@QEAA@PEBG@Z) referenced in function "public: __cdecl MainFrame::MainFrame(class wxFrame *,class wxString const &)" (??0MainFrame@@QEAA@PEAVwxFrame@@AEBVwxString@@@Z) RaytracerApp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl wxString::wxString(unsigned short const *)" (__imp_??0wxString@@QEAA@PEBG@Z) RaytracerTree.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl wxString::wxString(unsigned short const *)" (__imp_??0wxString@@QEAA@PEBG@Z) MainFrame.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxFrameNameStr" (__imp_?wxFrameNameStr@@3QBGB) referenced in function "public: __cdecl MainFrame::MainFrame(class wxFrame *,class wxString const &)" (??0MainFrame@@QEAA@PEAVwxFrame@@AEBVwxString@@@Z) MainFrame.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxMessageBoxCaptionStr" (__imp_?wxMessageBoxCaptionStr@@3QBGB) referenced in function "private: void __cdecl MainFrame::OnNew(class wxCommandEvent &)" (?OnNew@MainFrame@@AEAAXAEAVwxCommandEvent@@@Z) RaytracerApp.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl wxApp::Initialize(int &,unsigned short * *)" (?Initialize@wxApp@@UEAA_NAEAHPEAPEAG@Z) RaytracerTree.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxTreeCtrlNameStr" (__imp_?wxTreeCtrlNameStr@@3QBGB) referenced in function "public: __cdecl RaytracerTree::RaytracerTree(class wxWindow *,class wxString const &)" (??0RaytracerTree@@QEAA@PEAVwxWindow@@AEBVwxString@@@Z) RaytracerTree.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxPanelNameStr" (__imp_?wxPanelNameStr@@3QBGB) referenced in function "public: __cdecl RaytracerTree::RaytracerTree(class wxWindow *,class wxString const &)" (??0RaytracerTree@@QEAA@PEAVwxWindow@@AEBVwxString@@@Z) RaytracerTree.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned short const * const wxEmptyString" (__imp_?wxEmptyString@@3PEBGEB) referenced in function "private: void __cdecl RaytracerTree::OnItemRightClick(class wxTreeEvent &)" (?OnItemRightClick@RaytracerTree@@AEAAXAEAVwxTreeEvent@@@Z) .\gui.exe : fatal error LNK1120: 9 unresolved externals
J'ai donc ça en sortie je pense que ce sont des problèmes de linkage mais je ne vois pas du tout comment résoudre le problème ...
Auriez vous une idée ?
Merci @+
| |
|
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1191
Snippets: 23
Tutoriels: 6
Site web
Hors ligne |
Salut, et désolé pour la réponse tardive.
Tu peux me donner les paramètres que tu as utilisés, afin que je re-teste.
Pour ma part, ça me fait plus penser à un problème Ansi/Unicode ou un truc de ce genre (toutes les fonctions qui posent problème utilisent un wxString).
@+ Xav'
|
Le nouveau portail wxWidgets francophone : www.wxdev.fr Ben en fait, vous y êtes déjà...
|
Warzer (Membre)
Inscrit le : 05-10-2007
Messages: 283
Snippets: 4
Tutoriels: 0
Hors ligne |
Salut et merci,
Pour compiler les libs j'ai fait exactement ce que tu as fait dans le pdf je les compile en x64 normalement
Ensuite pour le projet j'ai j'ai utilisé l'assistant du site comme suit : - Microsoft Visual C++ (versions 2005 et 2008, Express ou non) - Visual C++ 2005 nom du projet gui - Répertoire d'installation des libs : C:\wx28vc - J'ai décoché debug - J'ai coché : Utiliser les DLL wxWidgets et Activer l'Unicode
Et c'est tout tu veux d'autre information ?
| |
|
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1191
Snippets: 23
Tutoriels: 6
Site web
Hors ligne |
Warzer a écrit:Pour compiler les libs j'ai fait exactement ce que tu as fait dans le pdf je les compile en x64 normalement Il y a de fortes chances que le problème soit dû à ça.
L'assistant de ce site n'active pas le 64bits. Ça va donc être à toi de le faire dans les options du projet.
@+ Xav'
|
Le nouveau portail wxWidgets francophone : www.wxdev.fr Ben en fait, vous y êtes déjà...
|
Warzer (Membre)
Inscrit le : 05-10-2007
Messages: 283
Snippets: 4
Tutoriels: 0
Hors ligne |
Bon finalement j'ai compilé en ansi, static puis x64 et ça marche.
| |
|
|