Article View: gnu.gcc.help
Article #610link with the xopen libraries on Sun4
From: Ab Wilson
Date: Wed, 11 Nov 1992 21:03
Date: Wed, 11 Nov 1992 21:03
27 lines
1497 bytes
1497 bytes
The UI for the project I'm working on is being developed by a separate group using a Motif interface builder. This generates ansi C which I am atempting to compile with gcc (2.2.2) and link with the core of the application which is to be written in C++. The problem I have is that when I get to the link stage I get an the error: ld: Undefined symbol __assert collect: /usr/bin/ld returned 2 exit status Because the UI is Motif it use the xopen (/usr/xpg2lib on SunOS 4.1.1) environment and this is what is causing the problem. (assert is called from a function in libxpg.a). So I thought I'll give the -nostdlib flag to gcc and see if that sorts it out. But instead I get: ld: Undefined symbol _environ collect: /usr/bin/ld returned 2 exit status Does anyone know a solution to this problem. Ab. -- +--------------------------------------------------------------------+ | Who's opinions did you say these were? | naw@planet.bt.co.uk | +--------------------------------------------------------------------+
Technical Details
Message-ID:
<1992Nov11.210307.23639@planet.bt.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!agate!doc.ic.ac.uk!uknet!axion!planet.bt.co.uk!nawShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!agate!doc.ic.ac.uk!uknet!axion!planet.bt.co.uk!naw From: naw@planet.bt.co.uk (Ab Wilson) Newsgroups: gnu.gcc.help Subject: link with the xopen libraries on Sun4 Message-ID: <1992Nov11.210307.23639@planet.bt.co.uk> Date: 11 Nov 92 21:03:07 GMT Sender: news@planet.bt.co.uk Reply-To: naw@planet.bt.co.uk Organization: BT Labs, Martlesham Heath, Ipswich, UK. Lines: 27