🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42130

Re: Linking gcc libraries with Sun SparcWorks compilers

#42130
From: Fergus Henderson
Date: Sun, 14 Jan 1996 00:00
24 lines
1303 bytes
Murray Laing <D.M.Laing@ed.ac.uk> writes:

>Hi, we have recently upgraded to gcc-2.7.2 and in general have no
>problems except when we have to link gcc libraries with
>code compiled with the Sun Sparcworks compiler.
>
>At the linking stage the following symbol is reported as
>missing
>     ___eprintf
>
>We think the problem is primarily with libraries that use
>assert.h but cannot be sure.
>
>Is there anyway of avoiding this hidden library dependency?

What command are you using to link the libraries together?
You need to link with libgcc.a; if you're using cc to link,
then you need to do something like this:

	cc ... `gcc -print-libgcc-file-name`

--
Fergus Henderson             	WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au              	PGP: finger fjh@128.250.37.3
Technical Details
Message-ID: <9601419.2144@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <30F68C4A.41C67EA6@ed.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d1c91ea783312f47
X-Google-Attributes: gid11318c,public
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: Linking gcc libraries with Sun SparcWorks compilers
Date: 1996/01/14
Message-ID: <9601419.2144@mulga.cs.mu.OZ.AU>
X-Deja-AN: 135159559
sender: news@cs.mu.OZ.AU (CS-Usenet)
references: <30F68C4A.41C67EA6@ed.ac.uk>
organization: Computer Science, University of Melbourne, Australia
newsgroups: gnu.gcc.help