home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25302 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.6 KB

  1. Path: sparky!uunet!ukma!cs.widener.edu!dsinc!ub!csn!teal!dmw
  2. From: dmw@teal.csn.org (Dave Warner)
  3. Newsgroups: comp.os.linux
  4. Subject: c++2.3.3 prob. w Regex.o
  5. Summary: Udefined symbols w. c++2.3.3/libg++
  6. Keywords: c++2.3.3 Regex
  7. Message-ID: <dmw.727893596@teal>
  8. Date: 24 Jan 93 16:39:56 GMT
  9. Sender: news@csn.org (news)
  10. Organization: Colorado SuperNet, Inc.
  11. Lines: 34
  12. Nntp-Posting-Host: teal.csn.org
  13.  
  14.  
  15. I'm confused about c++2.3.3 compiling.  Compiling a c++ application
  16. (octave, a mathcad clone) WITHOUT -g I had to add -lc to the
  17. ld command to find c[in|out|err] and iostream -- I remember
  18. reading postings about iostream being in libc so that's why
  19. -lc is necessary.  Right?  Is this the way 'its supposed to be'?
  20.  
  21. Anyway, adding -lc got rid of many, many error messages so no
  22. big deal, I guess. Just curious.
  23.  
  24. An error I haven't been able to fumble around and fix, however,
  25. is the following:
  26.      /usr/lib/libg++.a(Regex.o): Undefined symbol
  27.      re_compile_pattern(const char *, int, re_pattern_buffer *)
  28.      referenced from text segment
  29. The same error also for : re_compile_fastmap, re_search_2,
  30. and re_match_2.
  31.  
  32. nm /usr/lib/libc.*a | grep re_compile_pattern shows:
  33.      00006150 T _re_compile_pattern     <-- libc.a
  34.      60025d6c A _re_compile_pattern     <-- libc.ca
  35.      60000aa0 A _re_compile_pattern     <-- libc.sa
  36.  
  37. If these ARE in libc why are they not found?  I tried loading with
  38. -static, -nojump and neither made any difference.  What am I missing
  39. here?
  40.  
  41. Thanks for any help, enlightened ones
  42. dave
  43. -- 
  44.  
  45. | Dave Warner            | e-mail: dmw@csn.org |
  46. | 151 Sky Trail Road     | USWest: 443-9589    |
  47. | Boulder, CO 80302      |    FAX: 443-6791    |
  48.