Re: NOTE: Compiling my 1st GTK+ program



Maya writes:
LDFLAGS = `pkg-config --libs gtk+-2.0`

No. That should be called LIBS or something like that.

    $(CC) $(LDFLAGS) $(OBJS) -o $(EXEC)

and be placed last on the linker command line.

It is also customary to put the -o and ouput file name before the
object files. One should strive to follow established conventions,
unless one has good reasons not to and knows what one is doing.

--tml





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