Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!indri!lll-winken!uunet!apctrc!zjat02 From: zjat02@apctrc.trc.amoco.com (Jon A. Tankersley) Newsgroups: gnu.g++ Subject: ld++ problem with Sun3 under 4.0.1 Message-ID: <814@apctrc.UUCP> Date: 25 Apr 89 19:39:20 GMT Sender: news@apctrc.UUCP Reply-To: zjat02@apctrc.trc.amoco.com (Jon A. Tankersley) Distribution: na Organization: Amoco Production Company, Tulsa Research Center Lines: 14 I am having some problems with g++/ld++. Seems ld++ doesn't search the library paths properly for the listed files or something. g++ -v test1.o -o test1 g++ version 1.34.2 /usr/local/lib/gnu/gcc-ld++ -o test1 -C -dc -dp /usr/local/lib/gnu/crt0+.o Mcrt1.o test1.o -lg++ /usr/local/lib/gnu/gcc-gnulib -lc ld++: No such file or directory for Mcrt1.o If I modify Mcrt1.o to /lib/Mcrt1.o it links properly. Anybody got a quick and dirty way to fix this? Or even a not so quick way.... Also, to link in the math library libm.a I have to do the following -lm -lc (tests 6,7,8, at least). Any ideas on this? -tank- #include /* nobody knows the trouble I .... */ tank@apctrc.trc.amoco.com ..!uunet!apctrc!tank