home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!dkuug!diku!dingbat
- From: dingbat@diku.dk (Niels Skov Olsen)
- Newsgroups: comp.os.linux
- Subject: libg++.a problem with Regex.o
- Message-ID: <1993Jan8.103050.18355@odin.diku.dk>
- Date: 8 Jan 93 10:30:50 GMT
- Sender: dingbat@rimfaxe.diku.dk
- Organization: Department of Computer Science, U of Copenhagen
- Lines: 50
-
- Hi,
-
- A slight problem with g++ 2.3.3 and the latest libs and the binutils
- found on the latest hlu base disks.
-
- When I compile this program:
-
- // tst.cc
- #include <iostream.h>
- #include <String.h>
-
- main()
- {
- String a("a string");
-
- cout << "String a contains : " << a << "\n";
-
- return 0;
- }
-
- like this:
-
- # g++ -nojump tst.cc
-
- ld gives me these errors:
-
- /usr/lib/libg++.a(Regex.o):
- Undefined symbol re_compile_pattern(const char *, int, re_pattern_buffer *)
- referenced from text segment
-
- /usr/lib/libg++.a(Regex.o):
- Undefined symbol re_compile_fastmap(re_pattern_buffer *)
- referenced from text segment
-
- /usr/lib/libg++.a(Regex.o):
- Undefined symbol re_search_2(re_pattern_buffer *, const char *, int,
- const char *, int, int, int, re_registers *, int)
- referenced from text segment
-
- /usr/lib/libg++.a(Regex.o):
- Undefined symbol re_match_2(re_pattern_buffer *, const char *, int,
- const char *, int, int, re_registers *, int)
- referenced from text segment
-
- I have checked that these symbols are in fact in libg++.a with
- nm.
-
- What am I missing here?
-
- Niels
-