Bonjour,

Je ne peux plus compiler un programme avec GCC J'obtiens l'erreur suivante :
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
jerome@debian:~/C/chap1$ gcc -0 hello hello.c
gcc: unrecognized option '-0'
hello.c:5:2: warning: no newline at end of file
hello:(.rodata+0x0): multiple definition of `_fp_hw'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o:(.rodata+0x0): first defined here
hello: In function `__data_start':
(.data+0x4): multiple definition of `__dso_handle'
/usr/lib/gcc/i486-linux-gnu/4.1.3/crtbegin.o:(.data+0x0): first defined here
hello: In function `_init':
/var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.S:36: multiple definition of `_init'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crti.o:/build/buildd/glibc-2.5/build-tree/i386-libc/csu/crti.S:36: first defined here
hello: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o:(.text+0x0): first defined here
hello: In function `_fini':
/var/tmp/portage/sys-libs/glibc-2.5-r3/work/build-default-i686-pc-linux-gnu-nptl/csu/crti.S:52: multiple definition of `_fini'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crti.o:/build/buildd/glibc-2.5/build-tree/i386-libc/csu/crti.S:52: first defined here
hello:(.got.plt+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o:(.got.plt+0x0): first defined here
hello:(.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o:(.rodata.cst4+0x0): first defined here
hello: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../lib/crt1.o:(.data+0x0): first defined here
/tmp/ccWZ5hZC.o: In function `main':
hello.c:(.text+0x0): multiple definition of `main'
hello:(.text+0xa4): first defined here
collect2: ld returned 1 exit status