From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with libraries? Date: Sat, 09 May 1998 10:57:38 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 57 Message-ID: <35546EE2.2372@cs.com> References: <6j1eoj$8ml$1 AT news DOT metronet DOT de> <35544E20 DOT 79CF AT cs DOT com> NNTP-Posting-Host: ppp112.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Excuse me, there's a bug in the sample I posted for you. Make sure that all user-defined header files use "" instead of <> in the #include directive: ------- file1.h: void blah(int x,int y); ------- file2.h: void rababer(int z,short f,char r); ------- file1.c: #include "file1.h" void blah(int x,int y) { [...] }; ------- file2.c: #include "file2.h" void rababer(int z,short f,char r) { [...] }; ------- Main File: #include "file1.h" #include "file2.h" int main(void) { rababer(1,2,3); blah(1,2); return 0; }; -------- I apologize for any inconvenience this error caused you. -- John M. Aldrich - ICQ UIN# 7406319 * Anything that happens, happens. * Anything that, in happening, causes something else to happen, causes something else to happen. * Anything that, in happening, causes itself to happen again, happens again. * It doesn't necessarily do it in chronological order, though. --- Douglas Adams