home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gcc / help / 2504 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.4 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!netsys!agate!doc.ic.ac.uk!uknet!axion!planet.bt.co.uk!naw
  2. From: naw@planet.bt.co.uk (Ab Wilson)
  3. Newsgroups: gnu.gcc.help
  4. Subject: link with the xopen libraries on Sun4
  5. Message-ID: <1992Nov11.210307.23639@planet.bt.co.uk>
  6. Date: 11 Nov 92 21:03:07 GMT
  7. Sender: news@planet.bt.co.uk
  8. Reply-To: naw@planet.bt.co.uk
  9. Organization: BT Labs, Martlesham Heath, Ipswich, UK.
  10. Lines: 27
  11.  
  12.  
  13. The UI for the project I'm working on is being developed by a separate
  14. group using a Motif interface builder. This generates ansi C which I am
  15. atempting to compile with gcc (2.2.2) and link with the core of the
  16. application which is to be written in C++. 
  17.  
  18. The problem I have is that when I get to the link stage I get an
  19. the error:
  20. ld: Undefined symbol 
  21.    __assert 
  22. collect: /usr/bin/ld returned 2 exit status
  23.  
  24. Because the UI is Motif it use the xopen (/usr/xpg2lib on SunOS 4.1.1)
  25. environment and this is what is causing the problem. (assert is called
  26. from a function in libxpg.a). So I thought I'll give the -nostdlib
  27. flag to gcc and see if that sorts it out. But instead I get:
  28.  
  29. ld: Undefined symbol
  30.    _environ
  31. collect: /usr/bin/ld returned 2 exit status
  32.  
  33. Does anyone know a solution to this problem.
  34.     Ab.
  35. -- 
  36. +--------------------------------------------------------------------+
  37. | Who's opinions did you say these were?    |    naw@planet.bt.co.uk |
  38. +--------------------------------------------------------------------+
  39.