Probleme avec wxWidgets

Fermé
mariostar27 Messages postés 391 Date d'inscription mercredi 17 juin 2009 Statut Membre Dernière intervention 21 août 2015 - 2 déc. 2009 à 19:40
mariostar27 Messages postés 391 Date d'inscription mercredi 17 juin 2009 Statut Membre Dernière intervention 21 août 2015 - 2 déc. 2009 à 23:22
Bonjour,
voila j'ai voulu tester un petit programme pour tester wxWidget 2.8.10.
apres la compilation, des erreurs. Pouvez vous m'aider svp merci d'avance.
code test :
/* 
 * File:   main.cpp
 * Author: JEAN
 *
 * Created on 1 décembre 2009, 20:32
 */

#include <stdlib.h>
#include <wx/string.h>

/*
 * 
 */
int main(int argc, char** argv) {
    wxPuts(wxT("A wxWidgets console application"));
    wxPuts(wxT("A wxWidgets application console"));
    return (EXIT_SUCCESS);
}

puis voici les erreurs :
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Users/JEAN/Documents/NetBeansProjects/CppApplication_1'
/usr/bin/make  -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/cppapplication_1.exe
make[2]: Entering directory `/cygdrive/c/Users/JEAN/Documents/NetBeansProjects/CppApplication_1'
mkdir -p build/Debug/Cygwin-Windows
rm -f build/Debug/Cygwin-Windows/main.o.d
g++    -c -g -I/cygdrive/C/wxWidgets-2.8.10/include -MMD -MP -MF build/Debug/Cygwin-Windows/main.o.d -o build/Debug/Cygwin-Windows/main.o main.cpp
In file included from /cygdrive/C/wxWidgets-2.8.10/include/wx/defs.h:21,
                 from /cygdrive/C/wxWidgets-2.8.10/include/wx/string.h:25,
                 from main.cpp:9:
/cygdrive/C/wxWidgets-2.8.10/include/wx/platform.h:196:22: wx/setup.h: No such file or directory
In file included from /cygdrive/C/wxWidgets-2.8.10/include/wx/platform.h:293,
                 from /cygdrive/C/wxWidgets-2.8.10/include/wx/defs.h:21,
                 from /cygdrive/C/wxWidgets-2.8.10/include/wx/string.h:25,
                 from main.cpp:9:
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:103:9: #error "wxUSE_DYNLIB_CLASS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:111:9: #error "wxUSE_EXCEPTIONS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:119:9: #error "wxUSE_FILESYSTEM must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:127:9: #error "wxUSE_FS_ARCHIVE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:140:9: #error "wxUSE_DYNAMIC_LOADER must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:148:9: #error "wxUSE_LOG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:156:9: #error "wxUSE_LONGLONG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:164:9: #error "wxUSE_MIMETYPE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:172:9: #error "wxUSE_ON_FATAL_EXCEPTION must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:180:9: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:188:9: #error "wxUSE_PROTOCOL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:230:9: #error "wxUSE_REGEX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:238:9: #error "wxUSE_STDPATHS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:246:9: #error "wxUSE_XML must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:254:9: #error "wxUSE_SOCKETS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:262:9: #error "wxUSE_STREAMS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:270:9: #error "wxUSE_STOPWATCH must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:278:9: #error "wxUSE_TEXTBUFFER must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:286:9: #error "wxUSE_TEXTFILE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:302:9: #error "wxUSE_URL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:310:9: #error "wxUSE_VARIANT must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:330:9: #error "wxUSE_ABOUTDLG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:338:9: #error "wxUSE_ACCEL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:346:9: #error "wxUSE_ANIMATIONCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:354:9: #error "wxUSE_BITMAPCOMBOBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:362:9: #error "wxUSE_BMPBUTTON must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:370:9: #error "wxUSE_BUTTON must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:378:9: #error "wxUSE_CALENDARCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:386:9: #error "wxUSE_CARET must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:394:9: #error "wxUSE_CHECKBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:402:9: #error "wxUSE_CHECKLISTBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:410:9: #error "wxUSE_CHOICE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:418:9: #error "wxUSE_CHOICEBOOK must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:426:9: #error "wxUSE_CHOICEDLG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:434:9: #error "wxUSE_CLIPBOARD must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:442:9: #error "wxUSE_COLLPANE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:450:9: #error "wxUSE_COLOURDLG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:458:9: #error "wxUSE_COLOURPICKERCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:466:9: #error "wxUSE_COMBOBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:474:9: #error "wxUSE_COMBOCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:482:9: #error "wxUSE_DATAOBJ must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:490:9: #error "wxUSE_DATAVIEWCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:498:9: #error "wxUSE_DATEPICKCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:506:9: #error "wxUSE_DIRPICKERCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:514:9: #error "wxUSE_DISPLAY must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:522:9: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:530:9: #error "wxUSE_FILEDLG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:538:9: #error "wxUSE_FILEPICKERCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:546:9: #error "wxUSE_FONTDLG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:554:9: #error "wxUSE_FONTMAP must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:562:9: #error "wxUSE_FONTPICKERCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:570:9: #error "wxUSE_GAUGE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:578:9: #error "wxUSE_GRAPHICS_CONTEXT must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:587:9: #error "wxUSE_GRID must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:595:9: #error "wxUSE_HELP must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:603:9: #error "wxUSE_HYPERLINKCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:611:9: #error "wxUSE_HTML must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:632:9: #error "wxUSE_ICO_CUR must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:640:9: #error "wxUSE_IFF must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:648:9: #error "wxUSE_IMAGLIST must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:656:9: #error "wxUSE_JOYSTICK must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:664:9: #error "wxUSE_LISTBOOK must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:672:9: #error "wxUSE_LISTBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:680:9: #error "wxUSE_LISTCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:688:9: #error "wxUSE_LOGGUI must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:696:9: #error "wxUSE_LOGWINDOW must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:704:9: #error "wxUSE_LOG_DIALOG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:712:9: #error "wxUSE_MDI must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:720:9: #error "wxUSE_MDI_ARCHITECTURE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:728:9: #error "wxUSE_MENUS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:736:9: #error "wxUSE_MSGDLG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:744:9: #error "wxUSE_NOTEBOOK must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:752:9: #error "wxUSE_ODCOMBOBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:760:9: #error "wxUSE_PALETTE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:768:9: #error "wxUSE_POPUPWIN must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:776:9: #error "wxUSE_PRINTING_ARCHITECTURE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:784:9: #error "wxUSE_RADIOBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:792:9: #error "wxUSE_RADIOBTN must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:800:9: #error "wxUSE_SASH must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:808:9: #error "wxUSE_SCROLLBAR must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:816:9: #error "wxUSE_SLIDER must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:824:9: #error "wxUSE_SOUND must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:832:9: #error "wxUSE_SPINBTN must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:840:9: #error "wxUSE_SPINCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:848:9: #error "wxUSE_SPLASH must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:856:9: #error "wxUSE_SPLITTER must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:864:9: #error "wxUSE_STATBMP must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:872:9: #error "wxUSE_STATBOX must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:880:9: #error "wxUSE_STATLINE must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:888:9: #error "wxUSE_STATTEXT must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:896:9: #error "wxUSE_STATUSBAR must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:904:9: #error "wxUSE_TAB_DIALOG must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:912:9: #error "wxUSE_TEXTCTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:920:9: #error "wxUSE_TIPWINDOW must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:928:9: #error "wxUSE_TOOLBAR must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:936:9: #error "wxUSE_TOOLTIPS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:944:9: #error "wxUSE_TREECTRL must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:952:9: #error "wxUSE_VALIDATORS must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:960:9: #error "wxUSE_WXHTML_HELP must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:968:9: #error "wxUSE_XRC must be defined."
/cygdrive/C/wxWidgets-2.8.10/include/wx/chkconf.h:1765:9: #error "wxMessageBox is always needed"
In file included from /cygdrive/C/wxWidgets-2.8.10/include/wx/string.h:25,
                 from main.cpp:9:
/cygdrive/C/wxWidgets-2.8.10/include/wx/defs.h:42:13: #error "No Target! You should use wx-config program for compilation flags!"
In file included from main.cpp:9:
/cygdrive/C/wxWidgets-2.8.10/include/wx/string.h:164:4: #error "Please define string case-insensitive compare for your OS/compiler"
make[2]: *** [build/Debug/Cygwin-Windows/main.o] Error 1
make[2]: Leaving directory `/cygdrive/c/Users/JEAN/Documents/NetBeansProjects/CppApplication_1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Users/JEAN/Documents/NetBeansProjects/CppApplication_1'
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 811ms)

merci d'avance pour votre aide...

1 réponse

mariostar27 Messages postés 391 Date d'inscription mercredi 17 juin 2009 Statut Membre Dernière intervention 21 août 2015 26
2 déc. 2009 à 23:22
up
0