Path: utzoo!mnetor!uunet!husc6!yale!cmcl2!brl-adm!umd5!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uiucdcsm!grunwald From: grunwald@uiucdcsm.cs.uiuc.edu Newsgroups: comp.lang.c++ Subject: libC_p.a Message-ID: <4800010@uiucdcsm> Date: 12 Jan 88 19:06:00 GMT Lines: 23 Nf-ID: #N:uiucdcsm:4800010:000:817 Nf-From: uiucdcsm.cs.uiuc.edu!grunwald Jan 12 13:06:00 1988 I'm having trouble establishing a libC_p.a on a Sun under SunOS3.4. I always get multiple link references to 'exit' -- it appears to pull the reference from /lib/libc_p.a as well as /lib/libC_p.a. In order to fix this, and to make the C++ exit processing be in line with the rest of the Sun OS exit processing, I was going to change libC to use the Sun 'on_exit' routine to install an exit handler. This will eliminate the 'exit' symbol from libC.a, solve my problem. So, Questions: 1) has anyone done this? If so, any problems? Care to post your solution? 2) do people want this if I do it? 3) is there some way to get CC to use _p libraries instead of the standard libraries? From a cursory glance, it doesn't seem to use them (could well be mistaken here) dirk grunwald grunwald@m.cs.uiuc.edu