[antlr-interest] Re: Compiling/linking Antlr on Solaris

avsinh avsinh at yahoo.com
Fri Aug 23 14:52:20 PDT 2002


Hi,

I am running into similar problems on the same version of Solaris.

Also, there seems to be an issue of include files being 
absolute path rather than relative (for ex. "antlr/config.hpp").
Is there any particular reason for this?

regards,
anupam

--- In antlr-interest at y..., Ric Klaren <klaren at c...> wrote:
> Hi,
> 
> On Thu, Aug 22, 2002 at 07:04:00PM -0000, tim_michel wrote:
> > I'm having problems compiling and linking with Antlr 2.7.1 on 
> > Solaris 2.8 using Sun's Forte V6 update 2, (Sun WorkShop 6 update 
2
> > C++ 5.3).  However, I've tried using 5.0 and 5.2 with the same 
> > results.
> > 
> > I downloaded 2.7.1, ran ./configure, it built a C++ lib just fine.
> > 
> > When I try to link the library to my program, I get unresolves of
> > the form (this is a partial example):
> > 
> > __rwstd::__rb_tree<std::basic_string<char,std::char_traits<char>,
> >   std::allocator<char> >, (much stuff clipped here)
> >   antlr::CharScannerLiteralsLess,std::allocator (more clipped)
> >   const libantlr.a(CharScanner.o)
> > __type_1 std::copy<int*,int*>(__type_0,__type_0,__type_1)
> >   libantlr.a(InputBuffer.o)
> > ... and so on.
> 
> Try configure like:  CXX=CC CC=cc RANLIB="CC -xar" ./configure
> 
> The -xar tells the ranlib of solaris to include template instances 
in the
> archive. (Also listed in the README in lib/cpp (at least in the 
2.7.2a2
> release, I think.. if not it will be in the README of the next :) )
> 
> > "scripts/Rules.make:278: *** target pattern contains no `%'.  
Stop."
> 
> I have no clue why this is? I'm using GNU make 3.79.1 for 
development,
> which version are you using? This is the first report ever I see 
with
> this problem.
> 
> Cheers,
> 
> Ric
> -- 
> -----
+++++*****************************************************+++++++++---
----
>     ---- Ric Klaren ----- klaren at c... ----- +31 53 4893722  ----
> -----
+++++*****************************************************+++++++++---
----
>  "Don't call me stupid." "Oh, right. To call you stupid would be an 
insult
>     to stupid people. I've known sheep that could outwit you! I've 
worn
>               dresses with higher IQs!" --- A Fish Called Wanda


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list