Re: general build question
- From: "Milosz Derezynski" <internalerror gmail com>
- To: gonzo agoralabs com
- Cc: Gtk-List <gtk-list gnome org>
- Subject: Re: general build question
- Date: Mon, 19 Nov 2007 20:23:26 +0100
Add -lstdc++ as flag to the compilation (you missed linking to libstdc++).
-- Milosz
2007/11/19, Andres Gonzalez <gonzo agoralabs com
>:folks,
I am sorry to ask such elementary questions about building Gtk
applications but I am a bit confused and cannot find the answers
elsewhere. I get the following error when linking a simple test
application I have written:
ld: warning: cannot find entry symbol _start; defaulting to 08048764
main.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
I get the same __gxx_personality_v0 error for every file that compiled
in my build.
I am using `pkg-config --cflags gtk+-2.0`
on the g++ command line for
every compilation. And I am using `pkg-config --libs gtk+-2.0` on the
ld command line for the linking.
I am confused about what the pkg-config actually does and what this
back-quoted string actually is telling the compiler to do. I have
never seen this construction before. So...
Q: what actually does pkg-config do?
Q: do I use `pkg-config --cflags gtk+-2.0` if I am using g++ and not
gcc?
Q: what is the reference to: __gxx_personality_v0 ??
Q: how do I resolve that undefined reference error?
Thanks for any guidance you can give this newbee...
-Andres
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]