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