Re: Updated to Ubuntu 11.04 and Can't Compile



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 should be:

       $(CC) $(CFLAGS) -o $@ $< $(LIBS)

'$' and '@' were transposed for the target.

Allin Cottrell







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