home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / help / 1952 < prev    next >
Encoding:
Text File  |  1992-08-19  |  2.2 KB  |  70 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!email!roman
  3. From: roman@pauli.theochem.tuwien.ac.at (Roman Augustyn)
  4. Subject: Re: Libg++ on HP's
  5. Message-ID: <1992Aug20.095428@pauli.theochem.tuwien.ac.at>
  6. Originator: roman@pauli.theochem.tuwien.ac.at
  7. Keywords: gnu,libg++,gcc,g++
  8. Sender: news@email.tuwien.ac.at
  9. Nntp-Posting-Host: pauli.theochem.tuwien.ac.at
  10. Organization: Technical University Vienna / Austria
  11. References:  <vic.714225222@news2>
  12. Date: Thu, 20 Aug 1992 07:54:28 GMT
  13. Lines: 55
  14.  
  15.  
  16. > I built libg++ version 2.2 on a HP 9000/730 (running HP-UX 8.05)
  17. > using GCC version 2.2.2.  Whenever I try to link libg++.a with
  18. > any C++ program, no matter how trivial, I always get the following
  19. > error from the linker:
  20. >
  21. > ld: Unsatisfied symbols:
  22. >    _vt.filebuf (data)
  23.  
  24. A workaround for this problem was published by Per Bothner (bothner@cygnus.com)
  25. in the news-group 'gnu.g++.lib.bug'.
  26.  
  27. Changing line 78 of ./libg++-2.2/libg++/utils/gen-params (as described by the
  28. following 'diff' output) is doing the trick:
  29.  
  30. diff gen-params gen-params.orig
  31. 78c78
  32. <     echo "#define ${macro_prefix}DOLLAR_IN_LABEL ${DOLLAR_IN_LABEL}"
  33. ---
  34. >     echo "#define ${macro_prefix} ${DOLLAR_IN_LABEL} ${DOLLAR_IN_LABEL}"
  35.  
  36. I also applied a patch from Christoph Tietz (tietz@gmd.de, tietz@zi.gmd.dbp.de)
  37. which corrects a problem with the 'contains' operation for SubString objects:
  38. Change line 1077 of ./libg++-2.2/libg++/src/String.h according to the following
  39. 'diff' output.
  40.  
  41. diff String.h String.h.orig
  42. 1077c1077
  43. <   return S.search(pos, pos+len, c) >= 0;
  44. ---
  45. >   return S.search(pos, pos+len, 0, c) >= 0;
  46.  
  47. After that, 'make CC=gcc' followed by 'make CC=gcc check' passes most of
  48. the tests. Unfortunately i get the following error when linking
  49. './libg++-2.2/libg++/tests/tString':
  50.  
  51.         gcc  tString.o -o tString ../libg++.a
  52. ld: Unsatisfied symbols:
  53.    RXdouble (code)
  54.    RXalpha (code)
  55.    RXwhite (code)
  56.    RXint (code)
  57. collect: /bin/ld returned 1 exit status
  58. *** Error code 1
  59.  
  60. Stop.
  61.  
  62. I have not had the time to look into that error - perhaps someone can help me
  63. out.
  64.  
  65. Thanks,
  66.  
  67. Roman Augustyn                           (roman@pauli.theochem.tuwien.ac.at)
  68. Technical University Vienna
  69. Getreidemarkt 9, 1060 Vienna, Austria, Europe
  70.