Re: g_malloc and glib.h



On Fri, 17 May 2002, Daniel Carrera wrote:

My compiler can't seem to find g_malloc and g_free.
I'm sure that I'm just not giving the right flags to gcc.

Yes.

CFLAGS=-Wall -lm -DSTANDALONE
INC=-I/usr/include/glib-1.2/ -I/usr/lib/glib/include/ \
        -I/usr/X11R6/include/gnome-1.0
add: LIBS=`glib-config --libs`

all:
        gcc $(CFLAGS) $(INC) non-linear-fit.c -o fit

add $(LIBS)

Allin Cottrell.




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