Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!trw From: trw@aplcen.apl.jhu.edu (Weil timothy) Newsgroups: comp.unix.i386 Subject: Clean Compile! (ESIX - gcc) Summary: Eureka - a clean compile! Keywords: ESIX, gcc Message-ID: <5637@aplcen.apl.jhu.edu> Date: 7 Jun 90 01:49:58 GMT Distribution: comp.unix.i386 Organization: Johns Hopkins University, Laurel, MD Lines: 20 After several days of going nowhere with compile command lines such as * gcc -ansi -B -c -o file.o file.c OR, * gcc -ansi -B -o file file.c OR, * gcc -ansi -B file.c I mostly ran into the following error message - "ld: malformed input file (not rel or archive) file.o SO, like most good experimenters I stumbled onto a Makefile which resulted in - * gcc -O -c file.c * cc file.o -o file and THIS ONE WORKED! (and I've got no idea why). "If at first you dont succeed, try try again. Then give up. No sense being a fool about it". - William Claude Dunkenfield (aka W.C. Fields)