This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How do I link programs created with flex and bison.


DJ Delorie wrote:
> 
> Tony Stratton wrote:
> > st.tab.obj : error LNK2001: unresolved external symbol _alloca
> 
> This is in cygwin1.dll.  As a quick hack, write an alloca() function
> that simply calls malloc().  it will leak, but it should work
> until you can either find alloca for MSVC, or figure out how to avoid
> the call to alloca() in the first place.

I have found that using byacc (rather than bison) to generate the parser
removes the dependency on alloca.  Of course this means that the yacc
source must be generic and not depend on any of bisons extra features.

Cheers,
	Gary V. Vaughan
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]