This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Can't build revision 112801 of gcc trunk on cygwin: ada/env.c:312: undefined reference to `_clearenv'
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Christian Joensson <christian dot joensson at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Nicolas Roche <roche at adacore dot com>
- Date: Sun, 9 Apr 2006 11:35:56 +0200
- Subject: Re: [Ada] Can't build revision 112801 of gcc trunk on cygwin: ada/env.c:312: undefined reference to `_clearenv'
- References: <5460e3330604090109j435a0fa2p556216d28aa7c97b@mail.gmail.com>
> gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
> -Wmissing-prototypes -fno-common -DHAVE_CONFIG_H -I. -Iada
> -I../../gcc/gcc -I../../gcc/gcc/ada -I../../gcc/gcc/../include
> -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnumber
> -I../libdecnumber ../../gcc/gcc/ada/env.c -o ada/env.o
> ../../gcc/gcc/ada/env.c: In function `__gnat_clearenv':
> ../../gcc/gcc/ada/env.c:312: warning: implicit declaration of function
> `clearenv'
It likely means that clearenv is not available in cygwin and you need
to add proper #ifdefs in env.c to avoid using it.
Arno