This might not be the right list, but it is a question about development on
RedHat, so I'll give it a go...

I'm writing a program, and have been using the Makefile command

CC = gcc
FLAGS = -g -O2 -D_REENTRANT -Wall 
LIBS = ../mylib.a

program:
        ${CC} ${FLAGS} -o program program.o module1.o module2.o module3.o
${LIBS}

I am trying to add gtk functions to the application, and so I changed the
variables to

FLAGS = -g -O2 -D_REENTRANT -Wall `gtk-config --cflags`
LIBS = ../mylib.a `gtk-config --libs`


and the program now fails to compile, complaining that it can't find the gtk
libraries.  Also, I have tried running the gtk-config file manually and
copying the output to FLAGS and LIBS.

When gcc attempts to compile the individual modules, there is no trace of
the libraries that are needed in the command line, and it aborts.

Thanks in advance.

JATF



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to