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 Date: Thu, 9 Oct 2003 17:00:37 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: mingw libs Message-ID: <20031009210037.GA23269@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <1065731605 DOT 3f85c6150fac4 AT www DOT nexusmail DOT uwaterloo DOT ca> <1065732594 DOT 3f85c9f215c2a AT www DOT nexusmail DOT uwaterloo DOT ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1065732594.3f85c9f215c2a@www.nexusmail.uwaterloo.ca> User-Agent: Mutt/1.4.1i 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/