Path: utzoo!utgpu!water!watmath!clyde!rutgers!bellcore!faline!thumper!ulysses!hector!jss From: jss@hector.UUCP (Jerry Schwarz) Newsgroups: comp.lang.c++ Subject: Re: Compiling cfront output with cc Message-ID: <10183@ulysses.homer.nj.att.com> Date: 26 Mar 88 20:49:40 GMT References: <991@aucs.UUCP> Sender: netnews@ulysses.homer.nj.att.com Reply-To: jss@hector (Jerry Schwarz) Distribution: na Organization: AT&T Bell Labs, Murray Hill Lines: 15 In article <991@aucs.UUCP> 831059l@aucs.UUCP (STEVEN LUCIEN LANGLOIS) writes: > >When I tried to compile the C++ output file with the command >cc file.c -llibC, the loader complained saying that it could not open >file libC. I tried many variations of the above, all ending in failure. >Could someone please tell me what I am doing wrong. > A local guru could tell you how to get the library searched. But this would not yield a correct link phase. C++ linking must included a "static initializer resolution" phase. Thus it must be done with a CC command, not with a "cc" command. You can do "cc file.c" and then "CC file.o" if you want to. Jerry Schwarz