From: gvaughan AT oranda DOT demon DOT co DOT uk (Gary V. Vaughan) Subject: Re: How do I link programs created with flex and bison. 23 Dec 1998 10:56:26 -0800 Message-ID: <3680D48A.F3E10F92.cygnus.gnu-win32@oranda.demon.co.uk> References: <19981222213034 DOT 2843 DOT qmail DOT cygnus DOT gnu-win32 AT findmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: gnu-win32 AT cygnus DOT com 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 AT cygnus DOT com" with one line of text: "help".