Link to home
Start Free TrialLog in
Avatar of jaarshad
jaarshad

asked on

undefined symbol with flex/bison

Hi,
I am trying to write two parsers using bison/flex.  I can get the parsers to work independantly but i need both of them in the same executable.  So i used the -P and -p options for flex and bison respectively, giving them "aef".  Everything compiles fine but during runtime i get  

symbol lookup error: <lib name>: undefined symbol: aefin

i changed the declarations to

extern "C" FILE* aefin;
extern "C" int aeflex();
extern "C" void aeferror(const char*);
extern int aefparse(void*);

instead of yyXXX but i still get the undefined symbol error.

Any help would be greatly appreciated.
ASKER CERTIFIED SOLUTION
Avatar of jaarshad
jaarshad

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial