Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 31/12/2006, à 00:08

Uims

wxGTK - ne compile plus avec gcc ou g++

Bonjour,

Je viens de passer depuis peu sous ubuntu, quittant fedora core 5...

Je programme sous wxWidgets, et j'ai telecharger libwxgtk2.6-0 sous synaptic.

Mais dès que je compile:

zoloom@zoloom-desktop:~/Programmation/Cpp/µFrag$ g++ gui.cpp moteur.cpp -o uFrag `wx-config --libs --cppflags`
bash: wx-config : commande introuvable
In file included from gui.cpp:101:
gui.h:102:23: error: wx/wxprec.h: Aucun fichier ou répertoire de ce type
gui.h:105:23: error: wx/wx.h: Aucun fichier ou répertoire de ce type
gui.cpp:103:24: error: wx/textdlg.h: Aucun fichier ou répertoire de ce type
gui.cpp:104:25: error: wx/textctrl.h: Aucun fichier ou répertoire de ce type
gui.cpp:105:25: error: wx/stattext.h: Aucun fichier ou répertoire de ce type
gui.cpp:106:22: error: wx/sizer.h: Aucun fichier ou répertoire de ce type
gui.cpp:107:25: error: wx/aboutdlg.h: Aucun fichier ou répertoire de ce type
gui.cpp:108:22: error: wx/file.h: Aucun fichier ou répertoire de ce type
gui.cpp:111:23: error: wx/msgdlg.h: Aucun fichier ou répertoire de ce type
gui.cpp:112:24: error: wx/taskbar.h: Aucun fichier ou répertoire de ce type
gui.h:119: error: expected class-name before ‘{’ token
gui.h:124: error: expected constructor, destructor, or type conversion before ‘;’ token
gui.h:127: error: expected class-name before ‘{’ token
gui.h:130: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:130: error: expected ‘;’ before ‘*’ token
gui.h:131: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:131: error: expected ‘;’ before ‘*’ token
gui.h:132: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:132: error: expected ‘;’ before ‘*’ token
gui.h:133: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:133: error: expected ‘;’ before ‘*’ token
gui.h:134: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:134: error: expected ‘;’ before ‘*’ token
gui.h:135: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:135: error: expected ‘;’ before ‘*’ token
gui.h:136: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:136: error: expected ‘;’ before ‘*’ token
gui.h:137: error: ISO C++ forbids declaration of ‘wxButton’ with no type
gui.h:137: error: expected ‘;’ before ‘*’ token
gui.h:139: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
gui.h:139: error: expected ‘;’ before ‘*’ token
gui.h:140: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
gui.h:140: error: expected ‘;’ before ‘*’ token
gui.h:141: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
gui.h:141: error: expected ‘;’ before ‘*’ token
gui.h:142: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
gui.h:142: error: expected ‘;’ before ‘*’ token
gui.h:144: error: ISO C++ forbids declaration of ‘wxTextCtrl’ with no type
gui.h:144: error: expected ‘;’ before ‘*’ token
gui.h:145: error: ISO C++ forbids declaration of ‘wxTextCtrl’ with no type
gui.h:145: error: expected ‘;’ before ‘*’ token
gui.h:146: error: ISO C++ forbids declaration of ‘wxTextCtrl’ with no type
gui.h:146: error: expected ‘;’ before ‘*’ token
gui.h:148: error: ISO C++ forbids declaration of ‘wxTextCtrl’ with no type
gui.h:148: error: expected ‘;’ before ‘*’ token
gui.h:150: error: ISO C++ forbids declaration of ‘wxStaticBitmap’ with no type
gui.h:150: error: expected ‘;’ before ‘*’ token
gui.h:152: error: ISO C++ forbids declaration of ‘wxStaticBoxSizer’ with no type
gui.h:152: error: expected ‘;’ before ‘*’ token
gui.h:153: error: ISO C++ forbids declaration of ‘wxStaticBoxSizer’ with no type
gui.h:153: error: expected ‘;’ before ‘*’ token
gui.h:154: error: ISO C++ forbids declaration of ‘wxStaticBoxSizer’ with no type
gui.h:154: error: expected ‘;’ before ‘*’ token
gui.h:156: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:156: error: expected ‘;’ before ‘*’ token
gui.h:157: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:157: error: expected ‘;’ before ‘*’ token
gui.h:159: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:159: error: expected ‘;’ before ‘*’ token
gui.h:160: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:160: error: expected ‘;’ before ‘*’ token
gui.h:162: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:162: error: expected ‘;’ before ‘*’ token
gui.h:163: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:163: error: expected ‘;’ before ‘*’ token
gui.h:165: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:165: error: expected ‘;’ before ‘*’ token
gui.h:168: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:168: error: expected ‘;’ before ‘*’ token
gui.h:170: error: ISO C++ forbids declaration of ‘DECLARE_EVENT_TABLE’ with no type
gui.h:172: error: expected ‘;’ before ‘public’
gui.h:175: error: ‘wxCommandEvent’ has not been declared
gui.h:175: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:177: error: ‘wxCommandEvent’ has not been declared
gui.h:177: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:178: error: ‘wxCommandEvent’ has not been declared
gui.h:178: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:179: error: ‘wxCommandEvent’ has not been declared
gui.h:179: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:180: error: ‘wxCommandEvent’ has not been declared
gui.h:180: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:181: error: ‘wxCommandEvent’ has not been declared
gui.h:181: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:186: error: expected class-name before ‘{’ token
gui.h:190: error: expected ‘,’ or ‘...’ before ‘&’ token
gui.h:191: error: ISO C++ forbids declaration of ‘wxString’ with no type
gui.h:193: error: ‘wxCommandEvent’ has not been declared
gui.h:193: error: expected ‘,’ or ‘...’ before ‘(’ token
gui.h:196: error: ISO C++ forbids declaration of ‘wxCheckBox’ with no type
gui.h:196: error: expected ‘;’ before ‘*’ token
gui.h:197: error: ISO C++ forbids declaration of ‘wxCheckBox’ with no type
gui.h:197: error: expected ‘;’ before ‘*’ token
gui.h:198: error: ISO C++ forbids declaration of ‘wxCheckBox’ with no type
gui.h:198: error: expected ‘;’ before ‘*’ token
gui.h:200: error: ISO C++ forbids declaration of ‘wxBoxSizer’ with no type
gui.h:200: error: expected ‘;’ before ‘*’ token
gui.h:208: error: ‘wxString’ does not name a type
gui.h:215: error: ‘wxString’ does not name a type
gui.h:216: error: ‘wxString’ does not name a type
gui.h:232: error: ‘wxFrame’ has not been declared
gui.h:234: error: expected constructor, destructor, or type conversion before ‘EVT_BUTTON’
gui.cpp: In member function ‘virtual bool uFrag::OnInit()’:
gui.cpp:117: error: ‘wxDefaultPosition’ was not declared in this scope
gui.cpp:117: error: ‘wxSize’ was not declared in this scope
gui.cpp:117: error: new initializer expression list treated as compound expression
gui.cpp:119: error: ‘class fenp’ has no member named ‘Show’
gui.cpp: At global scope:
gui.cpp:124: error: expected ‘,’ or ‘...’ before ‘&’ token
gui.cpp:125: error: ISO C++ forbids declaration of ‘wxString’ with no type
gui.cpp:125: error: prototype for ‘fenp::fenp(int)’ does not match any in class ‘fenp’
gui.h:127: error: candidates are: fenp::fenp(const fenp&)
gui.h:127: error:                 fenp::fenp()
gui.cpp: In constructor ‘fenp::fenp(int)’:
gui.cpp:125: error: class ‘fenp’ does not have any field named ‘wxFrame’
gui.cpp:125: error: ‘title’ was not declared in this scope
gui.cpp:125: error: ‘pos’ was not declared in this scope
gui.cpp:125: error: ‘size’ was not declared in this scope
gui.cpp:125: error: ‘style’ was not declared in this scope
gui.cpp:127: error: ‘wxSystemSettings’ has not been declared
gui.cpp:127: error: ‘wxSYS_COLOUR_3DFACE’ was not declared in this scope
gui.cpp:127: error: ‘SetBackgroundColour’ was not declared in this scope
gui.cpp:129: error: ‘b_fragmentation’ was not declared in this scope
gui.cpp:129: error: expected type-specifier before ‘wxButton’
gui.cpp:129: error: expected `;' before ‘wxButton’
gui.cpp:130: error: ‘b_defragmentation’ was not declared in this scope
gui.cpp:130: error: expected type-specifier before ‘wxButton’
gui.cpp:130: error: expected `;' before ‘wxButton’
gui.cpp:131: error: ‘b_options’ was not declared in this scope
gui.cpp:131: error: expected type-specifier before ‘wxButton’
gui.cpp:131: error: expected `;' before ‘wxButton’
gui.cpp:132: error: ‘b_aide’ was not declared in this scope
gui.cpp:132: error: expected type-specifier before ‘wxButton’
gui.cpp:132: error: expected `;' before ‘wxButton’
gui.cpp:133: error: ‘b_apropos’ was not declared in this scope
gui.cpp:133: error: expected type-specifier before ‘wxButton’
gui.cpp:133: error: expected `;' before ‘wxButton’
gui.cpp:134: error: ‘b_parcourirfragmentation’ was not declared in this scope
gui.cpp:134: error: expected type-specifier before ‘wxButton’
gui.cpp:134: error: expected `;' before ‘wxButton’
gui.cpp:135: error: ‘b_parcourirfragments’ was not declared in this scope
gui.cpp:135: error: expected type-specifier before ‘wxButton’
gui.cpp:135: error: expected `;' before ‘wxButton’
gui.cpp:136: error: ‘b_parcourircible’ was not declared in this scope
gui.cpp:136: error: expected type-specifier before ‘wxButton’
gui.cpp:136: error: expected `;' before ‘wxButton’
gui.cpp:138: error: ‘txts_ref2’ was not declared in this scope
gui.cpp:138: error: expected type-specifier before ‘wxStaticText’
gui.cpp:138: error: expected `;' before ‘wxStaticText’
gui.cpp:139: error: ‘txts_ref1’ was not declared in this scope
gui.cpp:139: error: expected type-specifier before ‘wxStaticText’
gui.cpp:139: error: expected `;' before ‘wxStaticText’
gui.cpp:140: error: ‘txts_ref3’ was not declared in this scope
gui.cpp:140: error: expected type-specifier before ‘wxStaticText’
gui.cpp:140: error: expected `;' before ‘wxStaticText’
gui.cpp:141: error: ‘txts_ref4’ was not declared in this scope
gui.cpp:141: error: expected type-specifier before ‘wxStaticText’
gui.cpp:141: error: expected `;' before ‘wxStaticText’
gui.cpp:143: error: ‘txtc_nomfragmentfrag’ was not declared in this scope
gui.cpp:143: error: expected type-specifier before ‘wxTextCtrl’
gui.cpp:143: error: expected `;' before ‘wxTextCtrl’
gui.cpp:144: error: ‘txtc_nomfichierciblefrag’ was not declared in this scope
gui.cpp:144: error: expected type-specifier before ‘wxTextCtrl’
gui.cpp:144: error: expected `;' before ‘wxTextCtrl’
gui.cpp:145: error: ‘txtc_ciblefragments’ was not declared in this scope
gui.cpp:145: error: expected type-specifier before ‘wxTextCtrl’
gui.cpp:145: error: expected `;' before ‘wxTextCtrl’
gui.cpp:146: error: ‘txtc_nomfichierfinidefrag’ was not declared in this scope
gui.cpp:146: error: expected type-specifier before ‘wxTextCtrl’
gui.cpp:146: error: expected `;' before ‘wxTextCtrl’
gui.cpp:148: error: ‘wxBitmap’ was not declared in this scope
gui.cpp:148: error: ‘logo_m’ was not declared in this scope
gui.cpp:148: error: expected type-specifier before ‘wxBitmap’
gui.cpp:148: error: expected `;' before ‘wxBitmap’
gui.cpp:150: error: ‘logo_in_canevas’ was not declared in this scope
gui.cpp:150: error: expected type-specifier before ‘wxStaticBitmap’
gui.cpp:150: error: expected `;' before ‘wxStaticBitmap’
gui.cpp:152: error: ‘wxTaskBarIcon’ was not declared in this scope
gui.cpp:152: error: ‘taskbar’ was not declared in this scope
gui.cpp:155: error: ‘box_logo’ was not declared in this scope
gui.cpp:155: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:155: error: expected `;' before ‘wxBoxSizer’
gui.cpp:156: error: ‘wxALL’ was not declared in this scope
gui.cpp:156: error: ‘wxALIGN_CENTER_HORIZONTAL’ was not declared in this scope
gui.cpp:158: error: ‘box_ctrl1’ was not declared in this scope
gui.cpp:158: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:158: error: expected `;' before ‘wxBoxSizer’
gui.cpp:163: error: ‘box_ctrl2’ was not declared in this scope
gui.cpp:163: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:163: error: expected `;' before ‘wxBoxSizer’
gui.cpp:167: error: ‘boxs_ctrl’ was not declared in this scope
gui.cpp:167: error: expected type-specifier before ‘wxStaticBoxSizer’
gui.cpp:167: error: expected `;' before ‘wxStaticBoxSizer’
gui.cpp:172: error: ‘box_frag1’ was not declared in this scope
gui.cpp:172: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:172: error: expected `;' before ‘wxBoxSizer’
gui.cpp:177: error: ‘box_frag2’ was not declared in this scope
gui.cpp:177: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:177: error: expected `;' before ‘wxBoxSizer’
gui.cpp:183: error: ‘box_defrag1’ was not declared in this scope
gui.cpp:183: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:183: error: expected `;' before ‘wxBoxSizer’
gui.cpp:189: error: ‘box_defrag2’ was not declared in this scope
gui.cpp:189: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:189: error: expected `;' before ‘wxBoxSizer’
gui.cpp:195: error: ‘boxs_frag’ was not declared in this scope
gui.cpp:195: error: expected type-specifier before ‘wxStaticBoxSizer’
gui.cpp:195: error: expected `;' before ‘wxStaticBoxSizer’
gui.cpp:199: error: ‘boxs_defrag’ was not declared in this scope
gui.cpp:199: error: expected type-specifier before ‘wxStaticBoxSizer’
gui.cpp:199: error: expected `;' before ‘wxStaticBoxSizer’
gui.cpp:204: error: ‘box_p’ was not declared in this scope
gui.cpp:204: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:204: error: expected `;' before ‘wxBoxSizer’
gui.cpp:205: error: ‘wxEXPAND’ was not declared in this scope
gui.cpp:211: error: ‘SetSizerAndFit’ was not declared in this scope
gui.cpp: At global scope:
gui.cpp:216: error: variable or field ‘about’ declared void
gui.cpp:216: error: ‘int fenp::about’ is not a static member of ‘class fenp’
gui.cpp:216: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:216: error: ‘event’ was not declared in this scope
gui.cpp:216: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:217: error: expected ‘,’ or ‘;’ before ‘{’ token
gui.cpp:241: error: expected ‘,’ or ‘...’ before ‘&’ token
gui.cpp:242: error: ISO C++ forbids declaration of ‘wxString’ with no type
gui.cpp: In constructor ‘fen_option::fen_option(int)’:
gui.cpp:242: error: class ‘fen_option’ does not have any field named ‘wxFrame’
gui.cpp:242: error: ‘title’ was not declared in this scope
gui.cpp:242: error: ‘pos’ was not declared in this scope
gui.cpp:242: error: ‘size’ was not declared in this scope
gui.cpp:242: error: ‘style’ was not declared in this scope
gui.cpp:244: error: ‘wxSystemSettings’ has not been declared
gui.cpp:244: error: ‘wxSYS_COLOUR_3DFACE’ was not declared in this scope
gui.cpp:244: error: ‘SetBackgroundColour’ was not declared in this scope
gui.cpp:246: error: ‘check_taskbar’ was not declared in this scope
gui.cpp:246: error: expected type-specifier before ‘wxCheckBox’
gui.cpp:246: error: expected `;' before ‘wxCheckBox’
gui.cpp:247: error: ‘check_time’ was not declared in this scope
gui.cpp:247: error: expected type-specifier before ‘wxCheckBox’
gui.cpp:247: error: expected `;' before ‘wxCheckBox’
gui.cpp:248: error: ‘check_plusieursnom’ was not declared in this scope
gui.cpp:248: error: expected type-specifier before ‘wxCheckBox’
gui.cpp:248: error: expected `;' before ‘wxCheckBox’
gui.cpp:250: error: ‘boxPo’ was not declared in this scope
gui.cpp:250: error: expected type-specifier before ‘wxBoxSizer’
gui.cpp:250: error: expected `;' before ‘wxBoxSizer’
gui.cpp:251: error: ‘wxALL’ was not declared in this scope
gui.cpp:255: error: ‘SetSizerAndFit’ was not declared in this scope
gui.cpp: At global scope:
gui.cpp:263: error: variable or field ‘show’ declared void
gui.cpp:263: error: ‘int fen_option::show’ is not a static member of ‘class fen_option’
gui.cpp:263: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:263: error: ‘event’ was not declared in this scope
gui.cpp:263: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:264: error: expected ‘,’ or ‘;’ before ‘{’ token
gui.cpp:269: error: variable or field ‘aide’ declared void
gui.cpp:269: error: ‘int fenp::aide’ is not a static member of ‘class fenp’
gui.cpp:269: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:269: error: ‘event’ was not declared in this scope
gui.cpp:269: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:270: error: expected ‘,’ or ‘;’ before ‘{’ token
gui.cpp:274: error: variable or field ‘parcourir1’ declared void
gui.cpp:274: error: ‘int fenp::parcourir1’ is not a static member of ‘class fenp’
gui.cpp:274: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:274: error: ‘event’ was not declared in this scope
gui.cpp:274: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:275: error: expected ‘,’ or ‘;’ before ‘{’ token
gui.cpp:281: error: variable or field ‘parcourir2’ declared void
gui.cpp:281: error: ‘int fenp::parcourir2’ is not a static member of ‘class fenp’
gui.cpp:281: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:281: error: ‘event’ was not declared in this scope
gui.cpp:281: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:282: error: expected ‘,’ or ‘;’ before ‘{’ token
gui.cpp:288: error: variable or field ‘saveas’ declared void
gui.cpp:288: error: ‘int fenp::saveas’ is not a static member of ‘class fenp’
gui.cpp:288: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:288: error: ‘event’ was not declared in this scope
gui.cpp:288: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:289: error: expected ‘,’ or ‘;’ before ‘{’ token
gui.cpp:295: error: variable or field ‘fragmentation’ declared void
gui.cpp:295: error: ‘int fenp::fragmentation’ is not a static member of ‘class fenp’
gui.cpp:295: error: ‘wxCommandEvent’ was not declared in this scope
gui.cpp:295: error: ‘event’ was not declared in this scope
gui.cpp:295: error: ‘WXUNUSED’ was not declared in this scope
gui.cpp:296: error: expected ‘,’ or ‘;’ before ‘{’ token
zoloom@zoloom-desktop:~/Programmation/Cpp/µFrag$

Voila, que faire?

Merci d'avance

#2 Le 31/12/2006, à 01:18

Wapush

Re : wxGTK - ne compile plus avec gcc ou g++

Salut

As-tu bien installé libwxgtk2.6-dev ou seulement libwxgtk2.6-0 ?
libwxgtk2.6-0 ce n'est que les librairies pour faire tourner les logiciels compilés avec wxWigets, en installant libwxgtk2.6-dev ça va aussi t'installer en dépendance tout ce qui te sera nécessaire pour compiler.

Dernière modification par Wapush (Le 31/12/2006, à 04:01)

Hors ligne

#3 Le 31/12/2006, à 12:07

Uims

Re : wxGTK - ne compile plus avec gcc ou g++

Effectivement.

Mais j'obtiens sa désormais:

zoloom@zoloom-desktop:~/Programmation/Cpp/µFrag$ g++ gui.cpp moteur.cpp -o uFrag `wx-config --libs --cppflags`
gui.cpp:107:25: error: wx/aboutdlg.h: Aucun fichier ou répertoire de ce type
gui.cpp: In member function ‘virtual bool uFrag::OnInit()’:
gui.cpp:117: error: conversion from ‘const char [6]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp: In constructor ‘fenp::fenp(const wxString&, const wxPoint&, const wxSize&, long int)’:
gui.cpp:129: error: conversion from ‘const char [11]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:130: error: conversion from ‘const char [13]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:131: error: conversion from ‘const char [8]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:132: error: conversion from ‘const char [5]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:133: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:134: error: conversion from ‘const char [10]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:135: error: conversion from ‘const char [10]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:136: error: conversion from ‘const char [17]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:138: error: conversion from ‘const char [18]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:139: error: conversion from ‘const char [21]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:140: error: conversion from ‘const char [18]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:141: error: conversion from ‘const char [18]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:143: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:144: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:145: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:146: error: conversion from ‘const char [1]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:148: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:167: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:195: error: conversion from ‘const char [21]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:199: error: conversion from ‘const char [23]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp: In member function ‘void fenp::about(wxCommandEvent&)’:
gui.cpp:219: error: ‘wxAboutDialogInfo’ was not declared in this scope
gui.cpp:219: error: expected `;' before ‘info’
gui.cpp:220: error: ‘info’ was not declared in this scope
gui.cpp:220: error: converting to execution character set: Chaîne multi-octets ou étendue de caractères invalide ou incomplète
gui.cpp:231: error: ‘wxAboutBox’ was not declared in this scope
gui.cpp: In constructor ‘fen_option::fen_option(const wxString&, const wxPoint&, const wxSize&, long int)’:
gui.cpp:246: error: conversion from ‘const char [53]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:247: error: conversion from ‘const char [58]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:248: error: conversion from ‘const char [52]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp: In member function ‘void fen_option::show(wxCommandEvent&)’:
gui.cpp:265: error: conversion from ‘const char [8]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp: In member function ‘void fenp::aide(wxCommandEvent&)’:
gui.cpp:271: error: conversion from ‘const char [130]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:271: error: conversion from ‘const char [5]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp: In member function ‘void fenp::parcourir1(wxCommandEvent&)’:
gui.cpp:277: error: cannot convert ‘const char*’ to ‘const wxChar*’ for argument ‘1’ to ‘wxString wxFileSelector(const wxChar*, const wxChar*, const wxChar*, const wxChar*, const wxChar*, int, wxWindow*, int, int)’
gui.cpp: In member function ‘void fenp::parcourir2(wxCommandEvent&)’:
gui.cpp:284: error: cannot convert ‘const char*’ to ‘const wxChar*’ for argument ‘1’ to ‘wxString wxFileSelector(const wxChar*, const wxChar*, const wxChar*, const wxChar*, const wxChar*, int, wxWindow*, int, int)’
gui.cpp: In member function ‘void fenp::saveas(wxCommandEvent&)’:
gui.cpp:291: error: cannot convert ‘const char*’ to ‘const wxChar*’ for argument ‘1’ to ‘wxString wxFileSelector(const wxChar*, const wxChar*, const wxChar*, const wxChar*, const wxChar*, int, wxWindow*, int, int)’
gui.cpp: In member function ‘void fenp::fragmentation(wxCommandEvent&)’:
gui.cpp:297: error: ambiguous overload for ‘operator==’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() == ""’
/usr/include/wx-2.6/wx/string.h:1436: note: candidates are: bool operator==(const wxString&, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1440: note:                 bool operator==(const wxChar*, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1474: note:                 bool operator==(const wxString&, const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:1509: note:                 bool operator==(wxChar, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1510: note:                 bool operator==(const wxString&, wxChar) <near match>
/usr/include/wx-2.6/wx/longlong.h:916: note:                 bool operator==(long int, const wxLongLong&) <near match>
/usr/include/wx-2.6/wx/longlong.h:929: note:                 bool operator==(long unsigned int, const wxULongLong&) <near match>
gui.cpp:299: error: conversion from ‘const char [49]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:299: error: conversion from ‘const char [7]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:302: error: ambiguous overload for ‘operator==’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() == ""’
/usr/include/wx-2.6/wx/string.h:1436: note: candidates are: bool operator==(const wxString&, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1440: note:                 bool operator==(const wxChar*, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1474: note:                 bool operator==(const wxString&, const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:1509: note:                 bool operator==(wxChar, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1510: note:                 bool operator==(const wxString&, wxChar) <near match>
/usr/include/wx-2.6/wx/longlong.h:916: note:                 bool operator==(long int, const wxLongLong&) <near match>
/usr/include/wx-2.6/wx/longlong.h:929: note:                 bool operator==(long unsigned int, const wxULongLong&) <near match>
gui.cpp:304: error: conversion from ‘const char [34]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:304: error: conversion from ‘const char [7]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:307: error: ambiguous overload for ‘operator!=’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() != ""’
/usr/include/wx-2.6/wx/string.h:1442: note: candidates are: bool operator!=(const wxString&, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1446: note:                 bool operator!=(const wxChar*, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1478: note:                 bool operator!=(const wxString&, const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:1511: note:                 bool operator!=(wxChar, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1512: note:                 bool operator!=(const wxString&, wxChar) <near match>
/usr/include/wx-2.6/wx/longlong.h:917: note:                 bool operator!=(long int, const wxLongLong&) <near match>
/usr/include/wx-2.6/wx/longlong.h:930: note:                 bool operator!=(long unsigned int, const wxULongLong&) <near match>
gui.cpp:307: error: ambiguous overload for ‘operator!=’ in ‘#‘obj_type_ref’ not supported by dump_expr#<expression error>() != ""’
/usr/include/wx-2.6/wx/string.h:1442: note: candidates are: bool operator!=(const wxString&, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1446: note:                 bool operator!=(const wxChar*, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1478: note:                 bool operator!=(const wxString&, const wxWCharBuffer&) <near match>
/usr/include/wx-2.6/wx/string.h:1511: note:                 bool operator!=(wxChar, const wxString&) <near match>
/usr/include/wx-2.6/wx/string.h:1512: note:                 bool operator!=(const wxString&, wxChar) <near match>
/usr/include/wx-2.6/wx/longlong.h:917: note:                 bool operator!=(long int, const wxLongLong&) <near match>
/usr/include/wx-2.6/wx/longlong.h:930: note:                 bool operator!=(long unsigned int, const wxULongLong&) <near match>
gui.cpp:309: error: conversion from ‘const char [82]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
gui.cpp:309: error: conversion from ‘const char [9]’ to ‘const wxString’ is ambiguous
/usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match>
/usr/include/wx-2.6/wx/string.h:633: note:                 wxString::wxString(int) <near match>
zoloom@zoloom-desktop:~/Programmation/Cpp/µFrag$

#4 Le 31/12/2006, à 12:07

Uims

Re : wxGTK - ne compile plus avec gcc ou g++

Et merci d'ailleurs.

#5 Le 31/12/2006, à 18:28

Wapush

Re : wxGTK - ne compile plus avec gcc ou g++

Salut

Je ne suis pas programmeur, j'arrive à peine à effectuer quelques modif d'un code source. smile
Peut-être ces quelques liens pourront t'aider :
http://www.wxwidgets.org/wiki/index.php/WxString
http://wxwidgets.org/manuals/2.6.3/wx_wxstring.html
http://wxwidgets.org/manuals/2.6.3/wx_unicode.html

@+

Edit :
Arff ! j'avais pas vu l'erreur error: wx/aboutdlg.h: Aucun fichier ou répertoire de ce type
Mais j'peux pas plus t'aider big_smile Ce fichier est bien présent chez moi avec wxWigets 2.8

Dernière modification par Wapush (Le 31/12/2006, à 18:50)

Hors ligne

#6 Le 01/01/2007, à 13:01

Uims

Re : wxGTK - ne compile plus avec gcc ou g++

Décidemment je comprends pas pourquoi se fichier manque.

Est-ce que quelqu'un aurait un package pour la 2.8.0, ou connaissez vous un depot ou il y serais?

Merci

#7 Le 01/01/2007, à 17:46

Uims

Re : wxGTK - ne compile plus avec gcc ou g++

Je signale que mon code fonctionne.

#8 Le 02/01/2007, à 19:18

VeNeZ2

Re : wxGTK - ne compile plus avec gcc ou g++

Salut Uims,
As-tu trouvé le depot wxWidgets 2.8 ? -> http://www.wxwidgets.org/downloads/
Par contre, petit probleme avec la clef PGP (d'accès au depot). J'ai du l'enregistrer manuellement sur mon dd, puis la referencer avec synaptic.

Est-ce que le wxWidgets 2.8 règle ton problème ?

Par contre, j'ai un petit pb ici :
Quand j'essaie de compiler, il me met cette erreur :

error: expected class-name before '{' token

ca veut dire koi ca ? (Je debute en C++/wxwidgets, avec un tuto, mais bon..)

#9 Le 05/01/2007, à 18:22

Uims

Re : wxGTK - ne compile plus avec gcc ou g++

Tu n'aurais pas oublier un ; derrière le { d'une classe par hasard?

Met nous ton code, on pourra plus t'aider.

Je regarde pour le depot merci.

#10 Le 05/01/2007, à 18:26

Uims

Re : wxGTK - ne compile plus avec gcc ou g++

Re

Euh il veut pas de ma clé PGP visiblement.

J'ai beau entrer curl http://www.tt-solutions.com/vz/key.asc | apt-key add -

il me dit :

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1328  100  1328    0     0   2865      0 --:--:-- --:--:-- --:--:--  197k
gpg: aucun porte-clé n'a été trouvé avec des droits d'écriture : eof
gpg: erreur pendant la lecture de `-': erreur générale
gpg: import from `-' failed: erreur générale


Voila help plz

#11 Le 10/01/2007, à 00:00

nicolas66

Re : wxGTK - ne compile plus avec gcc ou g++

D'après ce que j'ai pu pigé, faudrait utiliser wxT("ma_string") OU _("ma_string") pour que ca passe à la compil'. Bref, faut trouver hmm


"The computer was born to solve problems that did not exist before." (B. Gates)

Hors ligne