Discussione: [C] debugger, come?
View Single Post
Old 05-04-2007, 11:31   #12
noodles83
Senior Member
 
L'Avatar di noodles83
 
Iscritto dal: Oct 2005
Cittā: Pisa
Messaggi: 1047
PROBLEMA!!

se compilo normalmente con gcc -o file file.c ....etc... tutto va bene e compila correttamente.

se invece compilo con gcc -o -ggdb file file.c ...etc... mi spunta fuori questo:

paolo@paolo-linux:~/programmazione/LCS/lcschat$ gcc -o -ggdb client client.c lcscom.c -L./lib -lpthread -lncurses -lMainWindow
client.rodata+0x0): multiple definition of `_fp_hw'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o:../sysdeps/i386/elf/start.S:65: first defined here
client: In function `__data_start': multiple definition of `__dso_handle'
/usr/lib/gcc/i486-linux-gnu/4.0.3/crtbegin.o.data+0x0): first defined here
client: In function `_init':/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S:32: multiple definition of `_init'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o:/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S:11: first defined here
client: In function `_start':../sysdeps/i386/elf/start.S:65: multiple definition of `_start'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o:../sysdeps/i386/elf/start.S:65: first defined here
client: In function `_fini':/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S:47: multiple definition of `_fini'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o:/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S:11: first defined here
client: In function `__i686.get_pc_thunk.bx':/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crtn.S:34: multiple definition of `__i686.get_pc_thunk.bx'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o:/build/buildd/glibc-2.3.6/build-tree/i386-libc/csu/crti.S:11: first defined here
client.rodata+0x4): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o:../sysdeps/i386/elf/start.S:71: first defined here
client: In function `__data_start': multiple definition of `__data_start'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crt1.o:../sysdeps/i386/elf/start.S:65: first defined here
/tmp/ccOHaJrV.o: In function `ResizeHandler':client.c.text+0x0): multiple definition of `ResizeHandler'
client: first defined here
/tmp/ccOHaJrV.o: In function `SigIntHandler':client.c.text+0x15): multiple definition of `SigIntHandler'
client: first defined here
/tmp/ccOHaJrV.o: In function `gestInput':client.c.text+0xff): multiple definition of `gestInput'
client: first defined here
/tmp/ccOHaJrV.o: In function `main':client.c.text+0x499): multiple definition of `main'
client: first defined here
/tmp/cc7Ngxv1.o: In function `createServerChannel':lcscom.c.text+0x0): multiple definition of `createServerChannel'
client: first defined here
/tmp/cc7Ngxv1.o: In function `destroyServer':lcscom.c.text+0xf2): multiple definition of `destroyServer'
client: first defined here
/tmp/cc7Ngxv1.o: In function `acceptConnection':lcscom.c.text+0x105): multiple definition of `acceptConnection'
client: first defined here
/tmp/cc7Ngxv1.o: In function `receiveMessage':lcscom.c.text+0x12e): multiple definition of `receiveMessage'
client: first defined here
/tmp/cc7Ngxv1.o: In function `sendMessage':lcscom.c.text+0x252): multiple definition of `sendMessage'
client: first defined here
/tmp/cc7Ngxv1.o: In function `closeConnection':lcscom.c.text+0x32f): multiple definition of `closeConnection'
client: first defined here
/tmp/cc7Ngxv1.o: In function `openConnection':lcscom.c.text+0x342): multiple definition of `openConnection'
client: first defined here
collect2: ld returned 1 exit status
paolo@paolo-linux:~/programmazione/LCS/lcschat$
__________________
Vendite concluse ottimamente con: Bastian UMTS, Tiscaliniano.
---------------------------------------------------------
1) Macbook Pro Core 2 Duo 2,16Ghz - 2GB di RAM - HD 160GB - Glossy Widescreen - 2°Gen
2) iPhone 3G - 8GB Black
3) Ipod Shuffle Blu 1GB
4) iMac 27" QuadCore i7

Ultima modifica di noodles83 : 05-04-2007 alle 11:33.
noodles83 č offline   Rispondi citando il messaggio o parte di esso