IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

wxWidgets Discussion :

le problem avec compilacion de projet


Sujet :

wxWidgets

  1. #1
    Futur Membre du Club
    Inscrit en
    Novembre 2006
    Messages
    6
    Détails du profil
    Informations forums :
    Inscription : Novembre 2006
    Messages : 6
    Points : 6
    Points
    6
    Par défaut le problem avec compilacion de projet
    J'ai utilisais Fedora5. J'ai faisee un upgrade a version Fedora6 et en effet je perdiu possibilite de compile mon projet.
    Pendant compilacion se paraisse un error suivant :
    Code x : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    g++ -o PLIK_WYNIKOWY `wxgtk2-2.4-config --cxxflags --libs` projekt1.cpp
    /tmp/ccm5GvL2.o: In function `StanyDialog::StanyDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0xd8d): undefined reference to `wxWindowBase::SetSize(int, int)'
    /tmp/ccm5GvL2.o: In function `StanyDialog::StanyDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0x181b): undefined reference to `wxWindowBase::SetSize(int, int)'
    /tmp/ccm5GvL2.o: In function `UrzadzeniaDialog::UrzadzeniaDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0x2187): undefined reference to `wxWindowBase::SetSize(int, int)'
    /tmp/ccm5GvL2.o: In function `UrzadzeniaDialog::UrzadzeniaDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0x2e35): undefined reference to `wxWindowBase::SetSize(int, int)'
    /tmp/ccm5GvL2.o: In function `BlokiDialog::BlokiDialog(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0x39c1): undefined reference to `wxWindowBase::SetSize(int, int)'
    /tmp/ccm5GvL2.o:projekt1.cpp:(.text+0x440f): more undefined references to `wxWindowBase::SetSize(int, int)' follow
    /tmp/ccm5GvL2.o: In function `MyFrame::MyFrame(wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0x4f50): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x4f77): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x5020): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5041): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x50e4): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5105): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x51a8): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5261): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5282): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x5325): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x53de): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x53ff): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x54a2): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x54c3): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x5566): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x561f): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5640): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x56e3): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    /tmp/ccm5GvL2.o: In function `MyApp::OnInit()':
    projekt1.cpp:(.text+0x5b68): undefined reference to `wxAppBase::SetTopWindow(wxWindow*)'
    /tmp/ccm5GvL2.o: In function `MyFrame::MyFrame(wxString const&, wxPoint const&, wxSize const&, long)':
    projekt1.cpp:(.text+0x5e60): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5e87): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x5f30): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x5f51): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x5ff4): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x6015): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x60b8): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x6171): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x6192): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x6235): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x62ee): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x630f): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x63b2): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x63d3): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x6476): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x652f): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    projekt1.cpp:(.text+0x6550): undefined reference to `wxMenuBase::AppendSeparator()'
    projekt1.cpp:(.text+0x65f3): undefined reference to `wxMenuBase::Append(int, wxString const&, wxString const&, wxItemKind)'
    collect2: ld returned 1 exit status
    Est-ce que quelqu'un poura m'aider?

    Merci

  2. #2
    Expert éminent
    Avatar de PRomu@ld
    Homme Profil pro
    Ingénieur de Recherche
    Inscrit en
    Avril 2005
    Messages
    4 155
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : France, Vienne (Poitou Charente)

    Informations professionnelles :
    Activité : Ingénieur de Recherche
    Secteur : Enseignement

    Informations forums :
    Inscription : Avril 2005
    Messages : 4 155
    Points : 6 486
    Points
    6 486
    Par défaut
    Effectue la compilation en deux passes :

    compilation avec ceci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    g++ -c `wx-config --cxxflags` projet.cpp
    Edition de lien comme ceci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    g++ `wx-config --libs std`
    Eventuellement vérifie que wx-config te rend quelque chose de valide (et pas rien)

  3. #3
    Futur Membre du Club
    Inscrit en
    Novembre 2006
    Messages
    6
    Détails du profil
    Informations forums :
    Inscription : Novembre 2006
    Messages : 6
    Points : 6
    Points
    6
    Par défaut
    J'ai reinstaler wxGTK et ca marche!

    Merci

    dorotha

  4. #4
    Futur Membre du Club
    Inscrit en
    Novembre 2006
    Messages
    6
    Détails du profil
    Informations forums :
    Inscription : Novembre 2006
    Messages : 6
    Points : 6
    Points
    6
    Par défaut
    Exactemant , j'ai changee version wxGTK2.2.4 pour wxGTK2.2.6

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Probleme pour debuguer avec GDB un projet Qt
    Par phraides dans le forum Code::Blocks
    Réponses: 1
    Dernier message: 07/07/2009, 10h09
  2. probleme d'ouverture de projet bonita avec eclipse
    Par samworkflow dans le forum Eclipse
    Réponses: 1
    Dernier message: 21/12/2008, 13h42
  3. Probleme avec projet de déploiement ASP
    Par lassaad83 dans le forum ASP.NET
    Réponses: 1
    Dernier message: 22/08/2007, 15h01
  4. Réponses: 1
    Dernier message: 22/04/2007, 18h08
  5. Probleme avec un projet Java
    Par BenzDev dans le forum Websphere
    Réponses: 2
    Dernier message: 14/02/2007, 12h26

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo