Date: Tue, 25 Feb 1997 00:30:40 -0800 From: Peter Haight <peterh@prognet.com> To: freebsd-hackers@freebsd.org Subject: Static variables in shared libraries Message-ID: <3.0.1.32.19970225003040.00ff58e4@prognet.com>
next in thread | raw e-mail | index | archive | help
While I am doing this stuff on FreeBSD, this is not necessarily FreeBSD related, but I can't seem to find much shared library information on the Web. 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? Additionaly, does anyone know a good source of detailed information on the implementation of shared libraries on various platforms?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.1.32.19970225003040.00ff58e4>