From: Shriramana Sharma <samjnaa@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: Re: Multiple declaration problem
Date: Wed, 28 Feb 2007 21:01:55 +0530 [thread overview]
Message-ID: <45E5A06B.8050300@gmail.com> (raw)
In-Reply-To: <45E05E83.5010005@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 448 bytes --]
Thanks to all who replied.
I found a different solution, which is by declaring the variables
static. Find attached solutions.
But still the C parser (or what is it?) did throw up an error with the
const variable, which C++ did not.
@Andre: Is there any I should not declare a variable in a header file if
I want that variable to be visible to many cpp files? I can avoid
writing many "extern" lines by using static.
Thanks again,
Shriramana.
[-- Attachment #2: multiple-declaration-problem-solutions.tar.gz --]
[-- Type: application/gzip, Size: 704 bytes --]
next prev parent reply other threads:[~2007-02-28 15:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-24 15:49 Multiple declaration problem Shriramana Sharma
2007-02-27 18:42 ` Glynn Clements
2007-02-27 18:57 ` Jesse Ruffin
2007-02-28 15:31 ` Shriramana Sharma [this message]
2007-03-07 16:36 ` Glynn Clements
-- strict thread matches above, loose matches on Subject: below --
2007-02-27 10:50 cyon.john
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=45E5A06B.8050300@gmail.com \
--to=samjnaa@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).