Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 9 Oct 2003 16:37:38 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: y2bismil AT engmail DOT uwaterloo DOT ca cc: cygwin AT cygwin DOT com Subject: Re: mingw libs In-Reply-To: <1065731605.3f85c6150fac4@www.nexusmail.uwaterloo.ca> Message-ID: References: <1065731605 DOT 3f85c6150fac4 AT www DOT nexusmail DOT uwaterloo DOT ca> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 9 Oct 2003 y2bismil AT engmail DOT uwaterloo DOT ca wrote: > Hi all, > > I'm trying to build an app using cygwin-gcc and the mingw package all provided > by the standard cygwin install. This is a purely console app, whose only use > beyond standard c++ is the conio library. > > I'm getting errors like: > undefined refernce to operator new > undefined refernce to operator delete > > .. > > I think I'm not linking in the appropriate libs. Does anyone know the standard > libs to include for general c++ usage (-lstdc++ -lmingw32) and winsock > (-lwsock32) usage. > > I just want to make sure I'm linking in everything. > Laslty, I just want to make sure my general approach is correct. When compiled, > I removed the standard include dirs, and only included the mingw ones. > > Thanks all, > Yamin What is the exact command that you use to invoke gcc? Try compiling/linking normally, but pass a -mno-cygwin flag to gcc. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/