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

Re: makefile to get iostream.h, etc



On Fri, Jun 28, 2002 at 01:45:41AM -0700, Paul Scott,,, wrote:
> I have been working on a program to recover some data from a broken ext2 
> partition.  I have been using streaming objects.
> 
> When I compile with g++ with no options the header files iostream.h and 
> fstream.h are found just fine.
> 
> I am now trying to write a makefile which I haven't done for many years 
> and not on a Linux system.  I get:
> 
> fixext2fs.c:1: iostream.h: No such file or directory
[...]
> make: *** [fixext2fs.o] Error 1
> 
> How do I tell the makefile how to find these?

You shouldn't have to do so explicitly. What does your makefile look
like?

I would guess that naming C++ source files foo.c doesn't help. Try
foo.cpp instead, and then make's default rules will be more useful to
you.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: