Bonjour,
Je suis nouvel utilisateur d'Eclipse Indigo SR2, sous Windows 7 32 bits et j'aimerais exécuter un petit programme en C ou C++ (du style "Hello World").
- J'ai installé la CDT, MinGW, MSYS-1.0.11
- J'ai mis la variable PATH (c: \ MinGW \ bin C: \ MinGW \ 1.0 \ bin C: \ MinGW \ mingw32 \ bin)
- J'ai défini cette variable dans Window > Préférences > C \ C + + > Build > Environnement
- J'ai créer un nouveau projet Fichier > Nouveau > C + + Project > executable - Projet > Bonjour tout le monde.
.. ou -> Makefile du projet - projet> HelloWorld Project "
Lors du build, j'obtiens l'erreur suivante :
et si j' exécute directement le programme il me donne :syntax error hello_world line 7, external location: c: \ mingw \ mingw32 \ bin \ ld.exe: c: \ mingw \ lib \ gcc \ mingw32 \ 4.6.2 \ crtend.o C / C + + Problem "Erreur affichée dans la console :launch failed. binary not foundQuelqu'un saurait-il m'indiquer d'où peut venir le problème ?**** Rebuild of configuration Debug for project hello_world ****
**** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -o src\hello_world.o ..\src\hello_world.cpp
g++ -o hello_world.exe src\hello_world.o
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtend.o: file format not recognized; treating as linker script
c:/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe:c:/mingw/bin/../lib/gcc/mingw32/4.6.2/crtend.o:7: syntax error
collect2: ld a retourné 1 code d'état d'exécution
Build error occurred, build is stopped
Time consumed: 3240 ms.
Merci d'avance pour votre aide
Partager