general build question



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










[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]