home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23200 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.4 KB  |  61 lines

  1. Path: sparky!uunet!gatech!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!dkuug!diku!dingbat
  2. From: dingbat@diku.dk (Niels Skov Olsen)
  3. Newsgroups: comp.os.linux
  4. Subject: libg++.a problem with Regex.o
  5. Message-ID: <1993Jan8.103050.18355@odin.diku.dk>
  6. Date: 8 Jan 93 10:30:50 GMT
  7. Sender: dingbat@rimfaxe.diku.dk
  8. Organization: Department of Computer Science, U of Copenhagen
  9. Lines: 50
  10.  
  11. Hi, 
  12.  
  13. A slight problem with g++ 2.3.3 and the latest libs and the binutils
  14. found on the latest hlu base disks.
  15.  
  16. When I compile this program:
  17.  
  18. // tst.cc
  19. #include <iostream.h>
  20. #include <String.h>
  21.  
  22. main()
  23. {
  24.         String a("a string");
  25.  
  26.         cout << "String a contains : " << a << "\n";
  27.  
  28.         return 0;
  29. }
  30.  
  31. like this:
  32.  
  33. # g++ -nojump tst.cc
  34.  
  35. ld gives me these errors:
  36.  
  37. /usr/lib/libg++.a(Regex.o):
  38. Undefined symbol re_compile_pattern(const char *, int, re_pattern_buffer *)
  39. referenced from text segment
  40.  
  41. /usr/lib/libg++.a(Regex.o):
  42. Undefined symbol re_compile_fastmap(re_pattern_buffer *)
  43. referenced from text segment
  44.  
  45. /usr/lib/libg++.a(Regex.o):
  46. Undefined symbol re_search_2(re_pattern_buffer *, const char *, int,
  47. const char *, int, int, int, re_registers *, int)
  48. referenced from text segment
  49.  
  50. /usr/lib/libg++.a(Regex.o):
  51. Undefined symbol re_match_2(re_pattern_buffer *, const char *, int,
  52. const char *, int, int, re_registers *, int)
  53. referenced from text segment
  54.  
  55. I have checked that these symbols are in fact in libg++.a with
  56. nm.
  57.  
  58. What am I missing here?
  59.  
  60. Niels
  61.