Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 1997 22:01:57 +0900 (JST)
From:      Michael Hancock <michaelh@cet.co.jp>
To:        Peter Haight <peterh@prognet.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Static variables in shared libraries
Message-ID:  <Pine.SV4.3.95.970225190717.13108A-100000@parkplace.cet.co.jp>
In-Reply-To: <3.0.1.32.19970225003040.00ff58e4@prognet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 25 Feb 1997, Peter Haight wrote:

> I have a shared library which has the following definitions:
> 
> const char* test_3 = "hello";
> const char* test_4 = test_3;
> 
> If I dynamically load this shared library in my program and print the
> variables, I get:
> test_3 = "hello"
> test_4 = 0x0
> 
> What's going on?

Try news:comp.lang.c.  "The C book" is also a necessity.

For good jump start, also get "Expert C Programming" from SunPress.  It
has a coelancanth on the cover.

Regards,


Mike Hancock




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.95.970225190717.13108A-100000>