delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/09/17:04:12

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
Message-ID: <3F85CD38.4030403@Saruman.local>
Date: Thu, 09 Oct 2003 23:03:52 +0200
From: =?ISO-8859-1?Q?Markus_Sch=F6nhaber?= <mks99 AT t-online DOT de>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031008 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: mingw libs
References: <1065731605 DOT 3f85c6150fac4 AT www DOT nexusmail DOT uwaterloo DOT ca> <Pine DOT GSO DOT 4 DOT 56 DOT 0310091636430 DOT 20462 AT slinky DOT cs DOT nyu DOT edu> <1065732593 DOT 3f85c9f194b65 AT www DOT nexusmail DOT uwaterloo DOT ca>
In-Reply-To: <1065732593.3f85c9f194b65@www.nexusmail.uwaterloo.ca>

Does using "g++" instead of "gcc" help?

Regards
  mks

y2bismil AT engmail DOT uwaterloo DOT ca wrote:

>Hi Igor,
>
>I added that -mno-cygwin to both compiler and linker and have started a
>build...should be about an hour or two before its donw.
>
>I didn't write the makefiles, but I have modified them to use GCC, so its really
>too complicated to post in its entirety...but the exact linker command is as
>follows:
>
>Bare in mind, I've tried several variations on these, so its not exactly the
>cleanest right now.  I've been 'thrashing' it.
>The commands are on a separate line, but that's just how the build system works
>here.  It does get fed into gcc correctly.
>*****************************
>gcc
>  -mno-cygwin   
>   -LC:\cygwin\lib\mingw
>   -BC:\cygwin\lib\mingw   
>   #list the libraries
>   -lstdc++
>   -lwsock32
>   -lmingw32
>   -g
>   -o$(_Target)
>   %foreach Link in $(LinkFiles)
>   $(LinksPath)\$(Link)
>   %end
>*****************************
>
>Quoting Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>:
>
>  
>
>>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
>>
>>    
>>
>
>
>
>
>----------------------------------------
>This mail sent through www.mywaterloo.ca
>
>--
>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/
>
>  
>


--
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