Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!agate!saturn!skinner From: skinner@saturn.ucsc.edu (Robert Skinner) Newsgroups: comp.lang.c++ Subject: cross-compilation Keywords: cross-compilation, _main, _new, _delete Message-ID: <5180@saturn.ucsc.edu> Date: 19 Oct 88 17:00:24 GMT Organization: U.C. Santa Cruz, CIS/CE. Lines: 22 I am trying to cross-compile C++ on a CRAY, since the Cray doesn't have CC. I use the -Fc option to produce a regular C file, then compile normally. This leaves me with the following routines undefined: _main _new _delete _new and _delete are obviously from libC, I think I can fake the routines for them. What about _main()? 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? Has anybody else tried this sort of thing, with a Cray in particular? Are there any hidden traps that are going to completely blow me out of the water? thank you for your support Robert Skinner skinner@saturn.ucsc.edu PS: I know that the CRAY only supports 15 character variable names. I'll write a name masher and pipe all the files through it first. That should be easy enough to deal with.