delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/05/23:17:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Spam-Filter: check_local AT alphatech DOT com 4.4(020923:1754) http://digitalanswers.org/
Message-Id: <4.3.2.7.2.20030205201711.00b1fb90@mail.alphatech.com>
X-Sender: alant AT mail DOT alphatech DOT com
Date: Wed, 05 Feb 2003 20:17:31 -0800
To: cygwin AT cygwin DOT com
From: Alan Thompson <athompson AT alphatech DOT com>
Subject: Using cygwin and JAVA/JNI
Mime-Version: 1.0

>
>Hi all - I have been doing some JNI stuff to integrate our legacy software, and I have had very good luck following the examples at http://www.inonit.com/cygwin/jni/helloWorld/ .  The only twist is that I've been using g++ instead of gcc, which simplifies the non-java part.
>
>Here's a question, though:  I cannot for the life of me figure out how to use the C++ <iostream> in any of the code!  For some reason, the "-mno-cygwin" flag kills the ability of g++ to either compile or link any code referring to <iostream>.  This means one is stuck using good old printf(), instead of the more modern way.  No matter how I break up the complies, it still fails at the linking stage (when -mno-cygwin is still required, according to my experiments).
>
>Does anyone have any ideas?  Also, I've been unable to find any documentation on the -mno-cygwin flag in the gcc/g++ man pages.  Can anyone point me to where this comes from and/or is documented?
>
>Thanks again for all of the help,
>Alan Thompson
>
>P.S.  I've been using Cygwin for quite a while now ant it's fantastic when you're chained to a windoze machine....
>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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