[Date Prev][Date Next]
Re: SunOS 4.1.4 Compiling Error & GNU's regex
> After posting a problem on compiling openldap on SunOS 4.1.4,
> firstname.lastname@example.org (Thanks Michael) wrote to install the GNU regex and to
> use the -I and -L option.
> I have compiled GNU regex (although it gave just the regex.o file, is thi=
> normal?), and I gave GCC the -I and -L option.
You are right, it does not build a library, so you do not need -L
(my mistake). Instead, try specifying regex.o using its abolute file
name as additional library. Your make output shows that the includes
have been found now, but functions are not found because ltest is not
linked with regex.o.
Alternatively, you may try to build a library using: "ar q libregex.a
regex.o" Install it where it should go to, e.g. /usr/local/lib, then
"ranlib /usr/local/lib/libregex.a" and use -L/usr/local/lib and -lregex.