Re: Updated to Ubuntu 11.04 and Can't Compile
- From: Craig Bakalian <craigbakalian verizon net>
- To: Allin Cottrell <cottrell wfu edu>
- Cc: doko ubuntu com, gtk-app-devel-list gnome org
- Subject: Re: Updated to Ubuntu 11.04 and Can't Compile
- Date: Sat, 05 Mar 2011 21:26:15 -0500
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]