| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4B3EA9D0.1060009@users.sourceforge.net> |
| Date: | Sat, 02 Jan 2010 10:05:04 +0800 |
| From: | JonY <jon_y AT users DOT sourceforge DOT net> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: old install instructions? -mnomingw being removed? |
| References: | <loom DOT 20100102T000949-363 AT post DOT gmane DOT org> |
| In-Reply-To: | <loom.20100102T000949-363@post.gmane.org> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
On 1/2/2010 07:52, Ken Tilton wrote:
> Sorry, I am a complete noob to all this make/install/gcc stuff, I am just trying
> to make a fresh build of a DLL I have used for years to see if it resolves a
> problem.
>
> I installed cygwin 1.7.1 today on a windows 7 laptop.
>
> The directions for my library are great:
>
> "VER=8.4.12
> SRCDIR=`pwd`
>
> cd $SRCDIR/tcl$VER/win
> env 'CC=gcc -mno-cygwin' ./configure --enable-threads
> make libtclstub84.a
>
> cd $SRCDIR/tk$VER/win
> env 'CC=gcc -mno-cygwin' ./configure --enable-threads
> make libtkstub84.a
>
> cd $SRCDIR/Togl
> env 'CC=gcc -mno-cygwin' ./configure --with-tcl=../tcl$VER/win --with-
> tk=../tk$VER/win
>
> make"
>
> That's from doc for the lib which is Togl, an OpenGL add-on widget to Tcl/Tk.
> Unfortunately the mailing list does not seem active, because:
>
> The first env command responds "C compiler cannot create executables" and refers
> me to the config.log. That has a few lines showing the -mno-cygwin flag has been
> removed and telling me to use a mingw-targeted cross-compiler.
>
> Not sure if those are warnings or that is why later what looks to be a hello-
> world-like little C compile reports failure leading next to the "cannot create
> exes" message.
>
> Googling did turn up a long-ago discussion mentioning deprecating no-mingw (and
> to my relief that this is not something poor know-nothings like me should
> encounter) but the obvious solution ("a mingw-targeted cross-compiler") did not
> work out two ways:
>
> 1. Just googling that did not cause anything to jump out at me.
> 2. I am wondering if this is a cross-compiler situaton, since I am on Windows
> trying to build a windows DLL.
>
> Any clues greatly appreciated!
>
> kt
>
Hi,
The -mno-cygwin option has been removed from gcc4.
If you need it, install the gcc-mingw package via the Cygwin setup, and
use CC="gcc-3 -mno-cygwin" instead. It is an older version of GCC, but
it will get you somewhere.
Yes, it is a cross-compile situation. MinGW and Cygwin are considered
different hosts even if both are running on Windows. Cygwin programs
use cygwin1.dll while MinGW programs use msvcrt.dll.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |