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

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-Authentication-Warning: ecserv7.uwaterloo.ca: www set sender to y2bismil AT engmail DOT uwaterloo DOT ca using -f
Message-ID: <1065733521.3f85cd9125629@www.nexusmail.uwaterloo.ca>
Date: Thu, 9 Oct 2003 17:05:21 -0400
From: y2bismil AT engmail DOT uwaterloo DOT ca
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> <1065732594 DOT 3f85c9f215c2a AT www DOT nexusmail DOT uwaterloo DOT ca> <20031009210037 DOT GA23269 AT redhat DOT com>
In-Reply-To: <20031009210037.GA23269@redhat.com>
MIME-Version: 1.0
User-Agent: Internet Messaging Program (IMP) 3.1 / FreeBSD-4.6.2
X-Originating-IP: 207.245.22.25

Quoting Christopher Faylor <cgf-rcm AT cygwin DOT com>:

> On Thu, Oct 09, 2003 at 04:49:54PM -0400, 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
> >*****************************
> 
> If you are compiling c++ files you need to use 'g++' not 'gcc'.
> 
> cgf
> 
> --
> 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/
> 


It compiled everything fine with no errors.  I thought gcc automatically detects
the file type and does the appropriate compilation?

It's still compiling now after the suggestion made by igor, but I guess this
might be an issue for the linker as we use an odd extension here (ob3 and ln3).
 Perhaps for the linker I'll change it to g++ and we'll see what happens


Yamin

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

- Raw text -


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