Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-06 Thread Craig Bakalian
Hi Allin, I don't think it was the grace of god in my old makefiles. It was an older version of gcc on my hard drive. Thank you for all your help. Craig Bakalian On Sat, 2011-03-05 at 21:36 -0500, Allin Cottrell wrote: > On Sat, 5 Mar 2011, Craig Bakalian wrote: > > > Well call me a frog. I

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Craig Bakalian wrote: > Well call me a frog. It worked. What the heck is going on? I gotta > change all my makefiles? You're a frog, sir! You have to feed all the "-lXX" stuff that is provided by "pkg-config --libs XX" to the linker _after_ the compiler has seen your code,

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
Well call me a frog. It worked. What the heck is going on? I gotta change all my makefiles? > > CC = gcc -g -O2 -Wall # or to taste > > CFLAGS = `pkg-config --cflags gtk+-2.0` > > LIBS = `pkg-config --libs gtk+-2.0` > > > > foo: foo.c > > $(CC) $(CFLAGS) -o @$ $< $(LIBS) > > Oops, that sh

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Allin Cottrell wrote: > On Sat, 5 Mar 2011, Craig Bakalian wrote: > > > > So are the libraries actually there? > > > > > > ls -al /usr/lib/libgtk-x11-2.0* > > > > > > There should be a symlink, something like > > > > > > /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2000.1

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Craig Bakalian wrote: > > So are the libraries actually there? > > > > ls -al /usr/lib/libgtk-x11-2.0* > > > > There should be a symlink, something like > > > > /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2000.1 > > This is what I get. It looks okay to me. > > ls -al /us

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
> > So are the libraries actually there? > > ls -al /usr/lib/libgtk-x11-2.0* > > There should be a symlink, something like > > /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.2000.1 > > (version numbers may differ). If not, you need to (re-)install > libgtk2.0-dev at least. > > Allin Cottr

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Allin Cottrell
On Sat, 5 Mar 2011, Craig Bakalian wrote: > I am still at it. It is a lonely night here. My kids are playing with > legos, and I am baffled by this. I have run pkg-config to no avail. I > have examined my packages and include files. It is all there. The > error appears to be in ld. Isn't ld

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
On Sun, 2011-03-06 at 01:30 +0100, David Nečas wrote: > So, what does it print then? Are the flags and libraries printed with > --libs those you expect? If they are not what are those you get Here it is-> pkg-config --cflags gtk+-2.0 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include

Re: Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread David Nečas
On Sat, Mar 05, 2011 at 06:51:29PM -0500, Craig Bakalian wrote: > I am still at it. It is a lonely night here. My kids are playing with > legos, and I am baffled by this. I have run pkg-config to no avail. So, what does it print then? Are the flags and libraries printed with --libs those you e

Updated to Ubuntu 11.04 and Can't Compile

2011-03-05 Thread Craig Bakalian
Hi, I am still at it. It is a lonely night here. My kids are playing with legos, and I am baffled by this. I have run pkg-config to no avail. I have examined my packages and include files. It is all there. The error appears to be in ld. Isn't ld a linker? Here is the terminal out on an att