Re: [gnome-love] newbie question on compiling a glib program



On 4/1/07, Jaap Haitsma <jaap haitsma org> wrote:
You mispelled the 2 functions. They should start with a g instead of a q


Sheesh... this is really embarrassing. I guess I was so fascinated with
quarks, everything seemed to start with 'q'. Anyways, thank you
and Stefano for pointing this out.

compiling it the way you do does not work with me. Use the following instead
gcc `pkg-config glib-2.0 --cflags` -o tryglib  tryglib.c `pkg-config
glib-2.0 --libs`

After correcting the spellings, I tried compiling using my old command,
and it compiled fine without any problems.
However, the command line you mentioned did not work, but the following
worked:
--------------------
gcc `pkg-config --cflags  glib-2.0` -o tryglib  tryglib.c `pkg-config
--libs glib-2.0`
--------------------

Thanks for the quick reply.

Regards,
Santanu



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