public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Greg Galloway <gregg@eoeml.gtri.gatech.edu>
To: egcs@cygnus.com
Subject: Libraries and glocal constructors
Date: Fri, 24 Apr 1998 09:07:00 -0000	[thread overview]
Message-ID: <199804241607.MAA02201@nospokes.gtri.gatech.edu> (raw)

I've written a simulation library on top of PVM in C++ which I'm compiling
with EGCS 1.0.2.  The library has bindings for C, C++, FORTRAN, and Ada.
I intentionally stayed away from declaring any static global objects
which would need global constructors so that they library could be linked
with a non-C++ compiler.  I am using standard library classes string,
ifstream, ofstream, and various STL containers.  Any global objects are
new'd and accessed via a pointer.

Are there any global objects in the standard library which would still
require a global constructor/destructor which would not get initialized
properly when linked with a non-C++ compiler?

Is this addressed by the standard?  Is it library implementation dependent?

Thanks,
Greg
--
Gregory L. Galloway
Research Scientist I

http://eoeml.gtri.gatech.edu/home/gregg/

             reply	other threads:[~1998-04-24  9:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-24  9:07 Greg Galloway [this message]
1998-04-24 16:23 ` H.J. Lu
1998-04-24 23:55 ` Martin von Loewis

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=199804241607.MAA02201@nospokes.gtri.gatech.edu \
    --to=gregg@eoeml.gtri.gatech.edu \
    --cc=egcs@cygnus.com \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).