www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/11/24/13:16:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Rich Simonis <Richard_S_Simonis AT thalesraytheon-us DOT com>
Subject: Building for cygwin/win32 under Linux
Date: Mon, 24 Nov 2008 18:05:13 +0000 (UTC)
Lines: 26
Message-ID: <loom.20081124T175129-245@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I'm a newbie to Cygwin.
I'm porting a Linux app to win32, and saw Cygwin as a efficient way to do it.
I used the NetBeans C/C++ IDE with Cygwin as the toolbase, and it worked
wonderfully.
Now, I need to move the "build process" onto one of Linux servers.  I moved the
project over enmasse, hoping that the Cygwin tools GNU roots would make things
easier.  

I set the include directive for the compile to -I$(BASE)cygwin/usr/include and 
set a linker directive to -L$(BASE)cygwin/lib.

(I get a bunch of  "warning: overriding commands for target ..." and 
"warning: ignoring old commands for target..." - finding out why and getting rid
of these would be nice)

What's stopping me currently are compile errors:
cygwin/usr/include/cygwin/socket.h:55: error: '__uid32_t' does not name a type
cygwin/usr/include/cygwin/socket.h:56: error: '__gid32_t' does not name a type

I don't know if I'm missing another include directive or a compiler switch, or
just if my assumption that I can use the Linux g++ to cross-compile to Win32 is
wrong.

Any help is appreciated.  Thanks in advance.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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