From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21705 invoked by alias); 12 Dec 2007 14:09:54 -0000 Received: (qmail 21695 invoked by uid 22791); 12 Dec 2007 14:09:52 -0000 X-Spam-Check-By: sourceware.org Received: from smtp111.sbc.mail.mud.yahoo.com (HELO smtp111.sbc.mail.mud.yahoo.com) (68.142.198.210) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 12 Dec 2007 14:09:41 +0000 Received: (qmail 88462 invoked from network); 12 Dec 2007 14:09:39 -0000 Received: from unknown (HELO ?69.105.73.42?) (timothyprince@sbcglobal.net@69.105.73.42 with plain) by smtp111.sbc.mail.mud.yahoo.com with SMTP; 12 Dec 2007 14:09:39 -0000 X-YMail-OSG: D8smlqwVM1kx6pKWotJcQwlBMK2oQfNo5MjqEJTNBB6cK2YkyKZ_ZREMKJMmm24mgsfsqTDW_w-- Message-ID: <475FE963.3000100@computer.org> Date: Wed, 12 Dec 2007 14:09:00 -0000 From: Tim Prince User-Agent: Thunderbird 2.0.0.4 (X11/20070613) MIME-Version: 1.0 To: mahmoodn CC: gcc-help@gcc.gnu.org Subject: Re: need help for editing a makefile References: <14269485.post@talk.nabble.com> <14290372.post@talk.nabble.com> In-Reply-To: <14290372.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00243.txt.bz2 mahmoodn wrote: >> VVc_demo$(OBJ_EXT) : a.cpp b.cpp c.cpp >> g++ -o $@ -c VVc_demo.cpp > >> (Usually you'd add VVc_demo.cpp itself to the dependency list as well.) > > Thanks but I forgot to say that there are some .h files too (it was my > fault). I add some thing like this: > > VVc_demo.moc: VVc_demo.cpp > > $(QT_MOC) -o VVc_demo.moc VVc_demo.cpp > > > > VVc_demo$(OBJ_EXT): VVc_demo.moc VVc_diagram_2.h Polygon_Voronoi_diagram_2.h > > g++ -o $@ -c VVc_demo.cpp > > > VVc_demo$(EXE_EXT): VVc_demo$(OBJ_EXT) > > $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)VVc_demo VVc_demo$(OBJ_EXT) $(LDFLAGS) > > > but it says: > [mahmood@Milky-way VVc_diagram_2]$ make > make: *** No rule to make target `VVc_diagram_2.h', needed by `VVc_demo.o'. > Add the include file path -Iyourpath to that step,, just as you would do when compiling outside make. -I./ normally is there by default.