This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: missing headerfile windows.h
On Wed, Mar 28, 2001 at 12:06:08PM -0500, Andrew Cagney wrote:
>Odd Lindahl wrote:
>>
>> Hi,
>>
>> I'm trying to compile gdb 5.0 and or insight 5.0 in a cygnus 1.18
>> environment
>> with newlib 1.9.0 and binutils 2.10.1 and gcc 2.95.2 as a cross compiler
>> with target=arm-elf.
>>
>> I've successfully compiled binutils,newlib,gcc and when I do:
>>
>> $mkdir -p /tmp/build/gdb
>> $cd /tmp/build/gdb
>> $/src/gdb/gdb-5.0/configure --target=arm-elf \
>> >--prefix=/tools \
>> >--exec-prefix=/tools/H-i686-pc-cygwin \
>> >-v 2>&1 | tee configure.out
>
>Try:
> CC="gcc -mwin32" CXX="g++ -mwin32" /.../confgure .....
Or, upgrade to the latest version of Cygwin gcc, which should fix this
problem.
I have some patches coming for gdb which also correct some WIN32/CYGWIN
misperceptions. I was surprised to see that gdb had some WIN32 ifdefs
that were just not right for Cygwin.
cgf