Re: C parser Can't be Linked to C++ Driver

2009-09-07 Thread Philip Herron
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Evan Carew wrote: > I'm trying something not found in any of the manuals or the > O'Reilly books. I'm trying to create a C lexer and parser (mainly > because C++ isn't really supported all that well yet), then link > them in with my C++ driver routine.

Re: C parser Can't be Linked to C++ Driver

2009-09-07 Thread Evan Carew
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Yep, that's it. Sometimes you need someone to dope slap you. extern "C" { extern int yyparse( ); } Evan Chris verBurg wrote: > > In the C++ code, have you tried declaring yyparse as "extern C int yyparse();" so that it doesn't try to mangle

C parser Can't be Linked to C++ Driver

2009-09-07 Thread Evan Carew
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying something not found in any of the manuals or the O'Reilly books. I'm trying to create a C lexer and parser (mainly because C++ isn't really supported all that well yet), then link them in with my C++ driver routine. My problem is that I am h