RE: lex & yacc with C++ projects

2002-05-06 Thread Robert Collins
> -Original Message- > From: Tom Tromey [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 06, 2002 3:45 PM > Do you have other C files that you want to compile with > $(CC)? If not you could set `CC = $(CXX)'. (This is pretty ugly.) We have a .c file that generates linker stubs for ob

Re: lex & yacc with C++ projects

2002-05-06 Thread Tom Tromey
> "Rob" == Robert Collins <[EMAIL PROTECTED]> writes: Rob> Yes, the C++ output from the tools is incorrect for what we are Rob> doing. (It depends on libstdc++). So all we want is the C Rob> output, and then compile with C++. Tricky. Is there some option you could pass to yacc? If so you

Re: lex & yacc with C++ projects

2002-05-05 Thread Tom Tromey
> "Ralf" == Ralf Corsepius <[EMAIL PROTECTED]> writes: Ralf> Yes, naming the sources .ll rsp. yy is supposed to handle this. Ralf> But I found this not to be actually functional with different Ralf> versions of automake, so YMMV. Yeah, there have been various reports and patches about this,

Re: lex & yacc with C++ projects

2002-04-26 Thread Ralf Corsepius
Am Fre, 2002-04-26 um 11.18 schrieb Robert Collins: > It would be nice to be able to tell automake that we want to compile the > out of lex and yaxx with g++, not gcc. (this is for C++ projects). > > Is there any way to do this currently? Yes, naming the sources .ll rsp. yy is supposed to handle

RE: lex & yacc with C++ projects

2002-04-26 Thread Robert Collins
> -Original Message- > From: Guido Draheim [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 9:49 PM > hhh. even though I need some enlightment what's wrong with a > libstdc++ dependency for a c++ compiled source - so your project > uses c++ files without libstdc++ and you

Re: lex & yacc with C++ projects

2002-04-26 Thread Guido Draheim
Es schrieb Robert Collins: > > > -Original Message- > > From: Guido Draheim [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 26, 2002 8:57 PM > > To: Robert Collins; [EMAIL PROTECTED] > > Subject: Re: lex & yacc with C++ projects > > > &

RE: lex & yacc with C++ projects

2002-04-26 Thread Robert Collins
> -Original Message- > From: Guido Draheim [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 8:57 PM > To: Robert Collins; [EMAIL PROTECTED] > Subject: Re: lex & yacc with C++ projects > > > Es schrieb Robert Collins: > > > > It would

Re: lex & yacc with C++ projects

2002-04-26 Thread Guido Draheim
Es schrieb Robert Collins: > > It would be nice to be able to tell automake that we want to compile the > out of lex and yaxx with g++, not gcc. (this is for C++ projects). rename mysource.l -> mysource.ll rename mysource.y -> mysource.yy and that's it. Were the manual pages confusing about tha

RE: lex & yacc with C++ projects

2002-04-26 Thread Robert Collins
> -Original Message- > From: Robert Collins > Sent: Friday, April 26, 2002 7:18 PM > To: [EMAIL PROTECTED] > Subject: lex & yacc with C++ projects > > > It would be nice to be able to tell automake that we want to > compile the out of lex and yaxx with g++, not gcc. (this is > for C