Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcsun!ukc!slxsys!bae-st!adam From: adam@ste.dyn.bae.co.uk (Adam Curtin) Newsgroups: comp.lang.c++ Subject: Creating SunOS shared libraries with Sun C++ 2.0 Keywords: Sun Message-ID: <1990Aug21.135101.11699@ste.dyn.bae.co.uk> Date: 21 Aug 90 13:51:01 GMT Reply-To: adam@ste.dyn.bae.co.uk (Adam Curtin) Organization: British Aerospace (Dynamics), Stevenage Lines: 30 (I hope the subject line didn't mislead you into thinking that this was a "how- to". It's a "please tell me how to"!) I can create all the shared libraries I want, as long as I don't use classes with virtual functions. The problem with virtual functions (as I understand it) is that the virtual function tables count as exported initialised data ... lib*.sa.v fodder. I would be able to cope with this if I could get the vft in a separate object module, but I can't find a way of getting it out of ... "... the file where the first non-inlined virtual function is defined." (page 5, READ THIS FIRST Sun C++ Part No: 800-3352-11) I may only put code in the .so file. I may only put data in the .sa file. I can't find a way of splitting them up. I'm a bit pessimistic because although Sun have provided a shared version of the complex library, there's no shared version of the Ostream library. Can anyone help? Adam -- A. D. Curtin Tel : +44 438 753430 British Aerospace (Dynamics) Ltd. Fax : +44 438 753377 PB 230, PO Box 19, Six Hills Way, Email: adam@ste.dyn.bae.co.uk Stevenage, SG1 2DA, UK. UUCP : ...!uunet!mcvax!ukc!bae-st!adam Arse-covering : Fun-to-be-alive: "My other car is an FJ1200"