Date: Wed, 10 Mar 1999 19:26:24 +0200 From: Graham Wheeler <gram@cdsec.com> To: hackers@freebsd.org Subject: C++ global constructors and shared libraries Message-ID: <36E6AB40.742D64BB@cdsec.com>
next in thread | raw e-mail | index | archive | help
Hi folks I have just changed some C++ code libraries from static to shared. I now find that some global objects declared in these libraries are no longer having their constructors called. If I move the object declarations into the main.cc file, then they work fine. However, I don't want to do this for all the objects - we are talking about 15 libraries here consisting of hundreds of .cc files that would have to be checked. Is there some command line argument that I need for this, or is it a problem with g++/ld on FreeBSD generally? I am using FreeBSD 2.2.7 at present. TIA gram -- Dr Graham Wheeler E-mail: gram@cdsec.com Citadel Data Security Phone: +27(21)423-6065/6/7 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Internet/Intranet Network Specialists Data Security Products WWW: http://www.cdsec.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36E6AB40.742D64BB>