Bonjour à tous ;

je suis sous vista et je travaille en utilisant code::blocks 8.02 !! qd j'essai de suivre ce qui est dis ici sur Qt4 :

http://qt.developpez.com/tutoriels/katanaenmousse/

ily a ce genre d'erreur :

Code : 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
 
Setting up a MinGW/Qt only environment...
-- QTDIR set to C:\Qt\4.5.0
-- PATH set to C:\Qt\4.5.0\bin
-- Adding C:\MinGW\bin to PATH
-- Adding C:\Windows\System32 to PATH
-- QMAKESPEC set to win32-g++
 
C:\Qt\4.5.0>cd C:\Users\julio\Documents\Code_blocks\Projet
 
C:\Users\julio\Documents\Code_blocks\Projet>qmake-project
'qmake-project' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
 
C:\Users\julio\Documents\Code_blocks\Projet>qmake -project
 
C:\Users\julio\Documents\Code_blocks\Projet>qmake
 
C:\Users\julio\Documents\Code_blocks\Projet>make
mingw32-make -f Makefile.Debug
Makefile.Debug:124: warning: overriding commands for target `debug/main.o'
Makefile.Debug:121: warning: ignoring old commands for target `debug/main.o'
Makefile.Debug:127: warning: overriding commands for target `debug/main.o'
Makefile.Debug:124: warning: ignoring old commands for target `debug/main.o'
mingw32-make[1]: Entering directory `C:/Users/julio/Documents/Code_blocks/Projet
'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt
\4.5.0\include\QtCore" -I"c:\Qt\4.5.0\include\QtGui" -I"c:\Qt\4.5.0\include" -I"
." -I"c:\Qt\4.5.0\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\4.5.0\mkspecs\win32
-g++" -o debug\main.o PremierpasQt\main.cpp
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
oc -mthreads -Wl -Wl,-subsystem,windows -o debug\Projet.exe debug/main.o debug/m
ain.o debug/main.o  -L"c:\Qt\4.5.0\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
 
debug/main.o(.text+0x100): In function `Z5qMainiPPc':
C:/Users/julio/Documents/Code_blocks/Projet/PremierpasQt/main.cpp:5: multiple de
finition of `qMain(int, char**)'
debug/main.o(.text+0x100):C:/Users/julio/Documents/Code_blocks/Projet/Premierpas
Qt/main.cpp:5: first defined here
debug/main.o(.text+0x100): In function `Z5qMainiPPc':
C:/Users/julio/Documents/Code_blocks/Projet/PremierpasQt/main.cpp:5: multiple de
finition of `qMain(int, char**)'
debug/main.o(.text+0x100):C:/Users/julio/Documents/Code_blocks/Projet/Premierpas
Qt/main.cpp:5: first defined here
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\Projet.exe] Error 1
mingw32-make[1]: Leaving directory `C:/Users/julio/Documents/Code_blocks/Projet'
 
mingw32-make: *** [debug] Error 2
 
C:\Users\julio\Documents\Code_blocks\Projet>



merci !!