This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Question about using MinGW GCC on Cygwin
- From: ééä (Wei-Ren Chen) <chenwj dot cs97g at nctu dot edu dot tw>
- To: cygwin at cygwin dot com
- Date: Tue, 9 Dec 2014 10:48:24 +0800
- Subject: Question about using MinGW GCC on Cygwin
- Authentication-results: sourceware.org; auth=none
Hi All,
I am trying to build gdbserver [1] on cygwin with mingw-gcc, since
I want to build native windows executable and cygwin-gcc doesn't
support "-mno-cygwin" any more. Here is how I do the config,
$ cd gdb-7.8.1/gdb/gdbserver
$ CC=i686-pc-mingw32-gcc ./configure
After `make`, I get the error message below,
--------
i686-pc-mingw32-gcc -g -O2 -I. -I. -I./../common -I./../regformats -I./.. -I./../../include -I./../gnulib/import
-Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
-DGDBSERVER -c -o remote-utils.o -MT remote-utils.o -MMD -MP -MF .deps/remote-utils.Tpo remote-utils.c
remote-utils.c: In function 'handle_accept_event':
remote-utils.c:161:22: error: storage size of 'sockaddr' isn't known
--------
It seems that mingw-gcc fails to find struct sockaddr due to the
incorrect include search path. What am I missing here, or should
I fall back to use MingGW instead?
Thanks. :-)
[1] http://www.gnu.org/software/gdb/
Regards,
chenwj
--
Wei-Ren Chen (ééä)
Homepage: http://people.cs.nctu.edu.tw/~chenwj
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple