From: jshopREMOVE AT voicenet DOT com (John) Newsgroups: comp.os.msdos.djgpp Subject: Re: Header file question Message-ID: <361e4b1f.3253895@netnews.voicenet.com> References: <361BDAFB DOT 507AE921 AT yahoo DOT com> X-Newsreader: Forte Free Agent 1.1/32.230 Lines: 16 Date: Fri, 09 Oct 1998 17:44:05 GMT NNTP-Posting-Host: 207.103.116.86 X-Trace: news2.voicenet.com 907955056 207.103.116.86 (Fri, 09 Oct 1998 13:44:16 EDT) NNTP-Posting-Date: Fri, 09 Oct 1998 13:44:16 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 07 Oct 1998 22:19:55 +0100, "][v][]2. ][)" wrote: >Hi ppl, another question from me. > >Picture this: I have a program file, and two header files (with source >files). In the header files are some structures (amongst others). The >problem is this: in the second header file I declare something like >this: RGB_color palette[256]; in a structure, where RGB_color is the >name of a structure from the first header file. Now GCC tells me there >is a syntax error in that line. I've double-checked it all, and it seems >to me the problem is that GCC doesn't find the RGB_color structure from >the first header file. What should I do? > #include "firstheader.h" ???