www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/17/23:32:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990918033116.5820.rocketmail@web128.yahoomail.com>
Date: Fri, 17 Sep 1999 20:31:16 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: Getting simple STL program to compile
To: Clark Sims <clarksimsgnu AT my-Deja DOT com>,
"cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
MIME-Version: 1.0

---  Clark Sims  <clarksimsgnu AT my-Deja DOT com> wrote:
>  OS) NT4 SP5
> Cygwin ver) 20.1
> GCC ver) 2.91.57
> Watcom ver) 11.0b
> STL) SGI port, 3.12.3
> 
> I wrote the attached program which uses, strings, vectors and the "Unix" 
> function, getch. It compiled and ran correctly using the Watcom comiler, so
> I am pretty sure that everything in the program is correct. I also copied
> most
> of the syntax from Stroustrup's "The C++ Programming Language", 3rd edition,
> chapters 20 & 21, so most (all?) of the functions and syntax for the STL 
> should be correct.
> 
> I can't get the program to compile with Cygnus-GCC or Cygnus-G++. I have
> tried
> the following command lines: 
> 
> gcc -mng-cygwin -o mypg mypg.cpp
> g++ -mno-cygwin -o mypg mypg.cpp
> g++ -mno-cygwin -o mypg mypg.cpp
> gcc -mno-cygwin -o mypg -I//d/STLport-3.12.3/stl mypg.cpp 
> g++ -mno-cygwin -o mypg -I//d/STLport-3.12.3/stl mypg.cpp 
> gcc -mno-cygwin -o mypg -I//d/cygnus/include/g++-3 mypg.cpp 
> g++ -mno-cygwin -o mypg -I//d/cygnus/include/g++-3 mypg.cpp 
> 
> None of these work.
> 
> Could someone show me how to get this program to compile?
> 

I tried this even with a month old snapshot and using cygwin I couldn't get a
build.

However,  I've a crossbread mix of cygwin and mingw32-gcc-2.95 that I used to
build it with no problems.  I copied cygwin to another directory tree, removed
the compiler and bin-utilities, removed the lib and include directories, then
added the mingw32 versions of what I removed.  I prefer this structure when
building native programs.  I also have a boot.bat file that does an effective
change root by doing a sh -c 'cd bin && ./umount / && ./mount d:\\root\mingw32
/' before starting bash.  I also create and copy a more normalized directory
tree which allows cygwin to be more friendly to non-cygwin programs.

I've never had the problems people have with using -mno-cygwin.
===
Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>

Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>

(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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