[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 442
  • Last Modified:

undefined symbol with flex/bison

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.
1 Solution
jaarshadAuthor Commented:
Problem solved!  I had a mistake in the Makefile.

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now