From: Ranga Makireddy <ranga.makireddy@gmail.com>
To: C-16 <pmr17184@students.fct.unl.pt>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: #include problem
Date: Mon, 18 Oct 2004 12:33:54 +0530 [thread overview]
Message-ID: <6eff2af00410180003383f9cfc@mail.gmail.com> (raw)
In-Reply-To: <200410151648.i9FGmlqM026477@students.fct.unl.pt>
Define your headers as follows in xxx.h file
#ifndef MY_HEADER
#define <my stuff>
#endif
Cheers,
Ranga
On Fri, 15 Oct 2004 17:48:47 +0100, C-16 <pmr17184@students.fct.unl.pt> wrote:
> Howdy,
> i have a file main.c in my program that needs to include four headers
> aaa.h , bbb.h ,ccc.h and ddd.h . Each one of these headers need to
> include another header xxx.h . With this implementation i get a
> "redefinition" compilation error. How can i solve this problem ? Thanks
> in advance.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2004-10-18 7:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 16:48 #include problem C-16
2004-10-15 17:04 ` Eric Bambach
2004-10-15 17:04 ` pdovera
2004-10-15 17:12 ` Eric Bambach
2004-10-15 21:15 ` Jan-Benedict Glaw
2004-10-18 7:03 ` Ranga Makireddy [this message]
2004-11-07 3:39 ` Wayne Wu
-- strict thread matches above, loose matches on Subject: below --
2004-10-15 16:55 Huber, George K RDECOM CERDEC STCD SRI
2004-10-15 17:29 C-16
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6eff2af00410180003383f9cfc@mail.gmail.com \
--to=ranga.makireddy@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=pmr17184@students.fct.unl.pt \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.