Code Comments
Programming Forum and web based access to our favorite programming groups.I am trying to compile the files in this example: http://www.gtkmm.org/docs/gtkmm-2.4...helloworld.html With my own makefile that looks like: INC=/usr/include/gtkmm-2.4/ -I/usr/include/glibmm-2.4/ -I/usr/lib/glibmm-2.4/include/ -I/usr/include/glib-2.0/ -I/usr/lib/glib/include/ -I/usr/include/sigc++-2.0/sigc++/ -I/usr/include/sigc++-2.0/ all: main main: helloworld.h helloworld.cc main.cc gcc main.cc -I$(INC) -o main It seems that the more includes I add more are needed. How do I make sure all includes are added without make a 4 pages makefile?
Post Follow-up to this messagesaneman wrote: > I am trying to compile the files in this example: > > http://www.gtkmm.org/docs/gtkmm-2.4...helloworld.html > > With my own makefile that looks like: > > INC=/usr/include/gtkmm-2.4/ -I/usr/include/glibmm-2.4/ > -I/usr/lib/glibmm-2.4/include/ -I/usr/include/glib-2.0/ > -I/usr/lib/glib/include/ -I/usr/include/sigc++-2.0/sigc++/ > -I/usr/include/sigc++-2.0/ > all: main > > main: helloworld.h helloworld.cc main.cc > gcc main.cc -I$(INC) -o main > > It seems that the more includes I add more are needed. How do I make > sure all includes are added without make a 4 pages makefile? What's the problem? You only type the makefile once. -- Ian Collins.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.