From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Unit Programming Date: 27 Sep 2002 12:00:57 GMT Organization: Aachen University of Technology (RWTH) Lines: 16 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1033128057 3367 137.226.32.75 (27 Sep 2002 12:00:57 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 27 Sep 2002 12:00:57 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com ChaoTix wrote: > Second problem is when I use only 1 header file , and while > compiling I got this error: > "dont know how to build func.o from func.h" That's not the error you're getting from compiling test.cpp, almost certainly. That's exactly the error you get if you incorrectly put func.h into the list of project source files. Don't do that. For your example, only test.cpp and func.cpp should be project source files. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.