Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!bionet!agate!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!otc!mikem From: mikem@otc.oz (Mike Mowbray) Newsgroups: comp.lang.c++ Subject: Re: cross-compilation Message-ID: <468@otc.oz> Date: 24 Oct 88 10:25:22 GMT References: <5180@saturn.ucsc.edu> Organization: OTC Development Unit, Australia Lines: 24 In article <5180@saturn.ucsc.edu>, skinner@saturn.ucsc.edu (Robert Skinner) says: > I am trying to cross-compile C++ on a CRAY, [...] > This leaves me with the following routines undefined: > _main _new _delete > What does _main() do besides construct all static objects? If I avoid > using static objects, can I insert a dummy _main() and get away with > it? This function of _main is quite important. If you don't do it properly, static ctors and dtors won't get called, which means that your cout calls will dump core, among other things. This will indeed blow you out of the water in most cases. You need to do the same post-linking that CC normally does (with the aid of munch). To do this I think you really need source for the translator. Mike Mowbray Network R&D |||| OTC || ACSnet: mikem@otc.oz TEL: (02) 287-4104 UUCP: {uunet,mcvax}!otc.oz!mikem SNAIL: GPO Box 7000, Sydney, Australia