Re: multiple declaration error
- From: Brett Nash <nash nash id au>
- To: Aaron Yang <porsche1904 yahoo com>
- Cc: glade-users lists ximian com, gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: multiple declaration error
- Date: Wed, 09 Feb 2005 21:41:50 +1100
Look at the two errors. Seems your program has two draw_button_clicked
in it...
First is in callbacks.c on line 17, the second is in callbacks.c on
line 17... That is you appear to be including the file callbacks.o twice
when linking. Either callbacks.c is listed twice in your sources, or
twice as callbacks.o in your object files. I assume that callbacks.c
only has one function in it...
Second note, you should really just send such requests to a single
list, not three. Additionally gtk-list is for the development of gtk,
not questions about it's use.
Regards,
nash
On Wed, 2005-02-09 at 01:41 -0800, Aaron Yang wrote:
hi everyone,
does anyone know why i get the following error even
though i've only declared the function once?
callbacks.o(.text+0x0): In function
`draw_button_clicked':
/home/programs/animation4/src/callbacks.c:17: multiple
definition of `draw_button_clicked'
main.o(.text+0x0):/home/programs/animation4/src/callbacks.c:17:
first defined here
collect2: ld returned 1 exit status
make: *** [a] Error 1
pls help, thanks..
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]