delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/20/14:29:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3AB7A995.3B8B2DFB@Network-Alchemy.com>
Date: Tue, 20 Mar 2001 11:03:50 -0800
From: Jonny Larson <JLarson AT Network-Alchemy DOT com>
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Earnie Boyd <earnie_boyd AT yahoo DOT com>
CC: cygwin <cygwin AT cygwin DOT com>
Subject: Re: GCC and alloca
References: <B7536E2DB26AD211A42500104BB49C72F604D9 AT manbarapp1 DOT intgame DOT com> <20010319125625 DOT F18807 AT redhat DOT com> <20010319130606 DOT G18807 AT redhat DOT com> <20010319131832 DOT A19287 AT redhat DOT com> <3AB6562D DOT 1D5E3209 AT Network-Alchemy DOT com> <3AB758E2 DOT 39EDD6C5 AT yahoo DOT com>

Earnie:
Thanks for the response.

We use gcc in CygWin to compile a ton of source files into a series of about 20
libraries.  Then we take these library files and link them to "C" code that makes up
an NDIS driver using the Microsoft NT DDK linker (which is actually the Microsoft
Incremental Linker Version 5.12.8181).

It is when we link the gcc-compiled libraries to the NDIS code that we get the alloca
unresolved errors.

Let me know if you still want to see the link statement we use.

Thanks in advance for all the help!
Jonny

Earnie Boyd wrote:

> Jonny Larson wrote:
> >
> > Even though we have no calls to alloca in our code, we're getting (link) errors
> > that __alloca is an unresolved external.  I believe this is because gcc seems to
> > use _alloca for allocating some local structures on the stack to optimize for
> > time.  Is there a gcc command-line option to turn this off?
> >
> > If not, what is the library I need to include to resolve the alloca reference?
> >
>
> What command line are you using for linking?  Is this C or C++ or
> something else?
>
> Earnie.
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019