From: "Johan Venter (aka sphinX)" <^_^@delorie.com> Newsgroups: comp.os.msdos.djgpp References: <004c01be0e57$ffc9a020$c5223182 AT marst96 DOT m DOT resnet DOT pitt DOT edu> Subject: Re: .h files Date: Tue, 17 Nov 1998 16:01:59 +1100 Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 NNTP-Posting-Host: 139.134.162.69 Message-ID: <3651546c.0@139.134.5.33> X-Trace: 17 Nov 1998 20:48:12 +1000, 139.134.162.69 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You obviously have two modules, main and x. main.cpp must include x.h x.cpp must include x.h then you compile x: gcc x.cpp -c which gives an o file. then you compile main.cpp and link it with x.o, like this: gcc main.cpp -o main.exe x.o try that. Alternatively, compile x.cpp into an o file and then type x.o into the box from (RHIDE) Options-Linker to link with that file. -- sphinX e-mail: sphinx AT iname DOT com icq: 3643877