ld error multiple definitions

2007-10-13 Thread Joël Krähemann
hello I get strange errors like

/home/link/ags/file/ags_file.o: In function `ags_file_class_init':
/home/link/ags/file/ags_file.c:32: multiple definition of `ags_file_class_init'
/home/link/ags/file/ags_file.o:/home/link/ags/file/ags_file.c:32:
first defined here
...

the application with full error output is in
http://mitglied.lycos.de/joel2001k/ags/mailing_list/ags_list.tar.bz2

I don't know what's going on I don't do anything else than in other
files I believe so
please help soon

greets
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: ld error multiple definitions

2007-10-13 Thread Yeti
On Sat, Oct 13, 2007 at 11:50:17AM +0200, Joël Krähemann wrote:
 hello I get strange errors like
 
 /home/link/ags/file/ags_file.o: In function `ags_file_class_init':
 /home/link/ags/file/ags_file.c:32: multiple definition of 
 `ags_file_class_init'
 /home/link/ags/file/ags_file.o:/home/link/ags/file/ags_file.c:32:
 first defined here

If you get definitions from the very same file and line
clashing, you are trying to link this file twice -- one way
or another.  Also, I wonder why ags_file_class_init() is
exported; it should be static.

Yeti

--
http://gwyddion.net/
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Don't understand valgrind output

2007-10-13 Thread Michael Lamothe
Hi People,

I have been struggling with application freezes in my application for
about 2 months and I was hoping that I could get some help.  I've been
cleaning the application up with errors reported by valgrind but can't
seem to work out what this means.  Can anyone shed some light on this?
 Should I just ignore this memory error?

==13801== Syscall param write(buf) points to uninitialised byte(s)
==13801==at 0x40007F2: (within /lib/ld-2.5.so)
==13801==by 0x4B6D64E: _X11TransWrite (in /usr/lib/libX11.so.6.2.0)
==13801==by 0x4B65526: (within /usr/lib/libX11.so.6.2.0)
==13801==by 0x4B66069: _XEventsQueued (in /usr/lib/libX11.so.6.2.0)
==13801==by 0x4B54DD1: XPending (in /usr/lib/libX11.so.6.2.0)
==13801==by 0x499A7DC: (within /usr/lib/libgdk-x11-2.0.so.0.1000.11)
==13801==by 0x499A8D0: (within /usr/lib/libgdk-x11-2.0.so.0.1000.11)
==13801==by 0x4C8A2C1: g_main_context_prepare (in
/usr/lib/libglib-2.0.so.0.1200.11)
==13801==by 0x4C8AA94: (within /usr/lib/libglib-2.0.so.0.1200.11)
==13801==by 0x4C8B178: g_main_loop_run (in
/usr/lib/libglib-2.0.so.0.1200.11)
==13801==by 0x4621043: gtk_main (in /usr/lib/libgtk-x11-2.0.so.0.1000.11)
==13801==by 0x8058022: Application::Application(int, char**)
(application.cc:180)
==13801==  Address 0x5360495 is 37 bytes inside a block of size 16,384 alloc'd
==13801==at 0x402095F: calloc (vg_replace_malloc.c:279)
==13801==by 0x4B53346: XOpenDisplay (in /usr/lib/libX11.so.6.2.0)
==13801==by 0x4990211: gdk_display_open (in
/usr/lib/libgdk-x11-2.0.so.0.1000.11)
==13801==by 0x496DCFE: gdk_display_open_default_libgtk_only (in
/usr/lib/libgdk-x11-2.0.so.0.1000.11)
==13801==by 0x462160E: gtk_init_check (in
/usr/lib/libgtk-x11-2.0.so.0.1000.11)
==13801==by 0x4621643: gtk_init (in /usr/lib/libgtk-x11-2.0.so.0.1000.11)
==13801==by 0x8057708: Application::Application(int, char**)
(application.cc:63)
==13801==by 0x805B8E5: main (main.cc:18)

Thanks,

Michael
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list