Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Nasty includes
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?

Report this thread to moderator Post Follow-up to this message
Old Post
saneman
03-31-08 02:10 AM


Re: Nasty includes
saneman 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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ian Collins
03-31-08 02:11 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:05 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.