ld: cannot find -lgobject-2.0

/home/nwagner> pkg-config --libs pygtk-2.0 -L/opt/gnome/lib

    > -lgobject-2.0 -lglib-2.0

    > /home/nwagner> pkg-config --libs gtk+-2.0
    > -Wl,--export-dynamic -L/opt/gnome/lib -lgtk-x11-2.0
    > -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
    > -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl
    > -lglib-2.0

Well that's interesting because pkg-config is doing it's job and
finding -L/opt/gnome/lib. You should verify that that flag is indeed
being added on the compile line that is failing but it should be so I
don't think this is your problem. In and case, could you post that
line and the first couple of error messages you get.

Can anyone think of any reason why you would get a linker failure to
find -lgobject-2.0 if the compiler gets -L/opt/gnome/lib and the
following exist

  /opt/gnome/lib/libgobject-2.0.a
  /opt/gnome/lib/libgobject-2.0.la
  /opt/gnome/lib/libgobject-2.0.so

Is this some sun os weirdness?

JDH