Message-ID: <001301be0d11$390cd520$c5223182@marst96.m.resnet.pitt.edu> From: "mark reed" To: Subject: .h files Date: Tue, 10 Nov 1998 20:18:41 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com I have a .h file and a .cpp file, the .h file contains function definitions for the .cpp file. How do i use those funcions in my main .cpp file?? I include the .h file, but then at link it cant find defs to the funcs. Then i add the cpp file as a part of my project (RHIDE), and that doesnt work. the main file still cant find definitions. finally i just put an include at the bottom of the .h file, that includes its respective .cpp file. And that works, but it seems wrong. if you include the .h file shouldnt it automatically look for the .cpp file? I am tired of definging all my functions in the .h file, and then having a huge mess to scroll through looking for one function, that might be in some other long .h file :) Mark