This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mingw libs

Quoting Christopher Faylor <>:

> On Thu, Oct 09, 2003 at 04:49:54PM -0400,
> 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:
> Problem reports:
> Documentation:
> 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


This mail sent through

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]