Article View: gnu.gcc.help
Article #53686Help needed: gcc/g++ 1.37 SCO Xenix binaries
From: 98964000
Date: Wed, 07 Aug 1991 10:58
Date: Wed, 07 Aug 1991 10:58
42 lines
1977 bytes
1977 bytes
Hope that subject line was descriptive enough... I would like to ask for help installing a binary distribution of gcc and g++ for SCO Xenix. I downloaded SCO Xenix binaries for gcc 1.37.1 and g++ 1.37, apparently using Steve Bleazard's patches. I am using SCO Xenix 2.3.4 with the SCO Xenix Development System 2.3.1. Gcc and g++ execute and compile programs, but do not link programs. I have only tried to compile "hello world" programs in C and C++, respectively. I do not have gnu-ld, so gcc and g++ are using /bin/ld. I will include here the ld commands used by gcc and g++, and the (paraphrased) error output of compiling foo.c and foo.cc. What am I doing wrong? Bill gcc link line: ld -i /lib/386/Sseg.o /lib/386/Scrt0.o -o a.out foo.o /usr/local/lib/gcc-gnulib /lib/386/Slibcfp.a /lib/386/libc.a gcc link errors: Unresolved externals: _main in file(s): /lib/386/Slibc.a(_start.c) _printf in file(s): foo.o(foo.o) g++ link line: ld -o /usr/tmp/cca06021.R /lib/386/Sseg.o /lib/386/Scrt0.o -i foo.o /usr/local/lib/Slibg++.a /usr/local/lib/gcc-gnulib++ /usr/local/lib/gcc-gnulib /usr/local/lib/g++dummy /lib/386/Slibcfp.a /lib/386/Slibc.a g++ link errors: Unresolved externals: _main in file(s): /lib/386/Slibc.a(_start.c) __cout in file(s): foo.o(foo.o) __sputs__9streambuffPCc in file(s): foo.o(foo.o) ____main in file(s): foo.o(foo.o)
Technical Details
Message-ID:
<19153@darkstar.ucsc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!ucbvax!agate!darkstar!ucscb.UCSC.EDU!billkShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4f86e77b472812a8,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-08-07 04:19:39 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!ucbvax!agate!darkstar!ucscb.UCSC.EDU!billk From: billk@ucscb.ucsc.edu (98964000) Newsgroups: gnu.gcc.help Subject: Help needed: gcc/g++ 1.37 SCO Xenix binaries Message-ID: <19153@darkstar.ucsc.edu> Date: 7 Aug 91 10:58:31 GMT Sender: usenet@darkstar.ucsc.edu Distribution: gnu Organization: UCSC Public Software Management Lines: 42