From: Clemens Valens Newsgroups: comp.os.msdos.djgpp Subject: Re: Some problems with including structures in a library. Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here X-Originating-Host: 195.154.148.69 X-Wren-Trace: cB45GQweQjoCUEo8DlJfRVpNXk9BTgZSSkdRTE5TXh5AQQtRQQtfXkNLQlVGB00KUQQTHQxPOjYSA1ATAVsZBVVdEBo= Message-ID: <932989695.13160@www.remarq.com> References: <379C2C6A DOT 1756 AT yahoo DOT com> Lines: 24 Date: Mon, 26 Jul 1999 03:48:12 -0800 NNTP-Posting-Host: 10.0.3.195 X-Complaints-To: wrenabuse AT remarq DOT com X-Trace: WReNphoon3 932989987 10.0.3.195 (Mon, 26 Jul 1999 04:53:07 PDT) NNTP-Posting-Date: Mon, 26 Jul 1999 04:53:07 PDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You should use typedef. I always do it like this: In you header file you write: typedef struct __my_struct { int some_variable; char blabla[23]; } my_struct; And then in your program you use: #include "my_header_file" my_struct my_struct_list[18]; This way you separate the definitions from the declarations. Hope this helps, Clemens * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * The fastest and easiest way to search and participate in Usenet - Free!