delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/31/13:56:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CALAJ8nTV5DTnzMk6FNBNkUydOyGiZVot=X9pqSDA-f=XDjiLXw@mail.gmail.com>
References: <CALAJ8nTV5DTnzMk6FNBNkUydOyGiZVot=X9pqSDA-f=XDjiLXw AT mail DOT gmail DOT com>
Date: Thu, 31 May 2012 13:55:55 -0400
Message-ID: <CALAJ8nRamLMuc18tSU355zVqGS8ZZ-4RSo25UMe51_6+pY4ENw@mail.gmail.com>
Subject: migrating to i686-pc-mingw32-gcc 4.5.2 from gcc 3.4.4 and libstdc++-6
From: Dennis Isenhour <dennis DOT isenhour AT gmail DOT com>
To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4VHuIRl021437

Please excuse me if this isn’t the correct place for this question or
if I’ve misunderstood something, or am not understanding something
obvious, but I honestly wasn’t really sure where the best place to ask
was despite looking around for quite some time and I have been unable
to locate anything that directly answers my questions in any of the
forums (on both the cygwin.com and mingw.org sites).

I am in the process of switching from an older version of cygwin gcc
where I previously used the –mno-cygwin flag in order to utilize the
mingw compiler portion.  With the new latest version, it appears I
need to change to explicitly install and utilize the mingw compiler.
After making the change, I have now encountered a situation where my
compiled executable is no longer working/loading correctly.  Debugging
the problem using the “cygcheck” tool, I was able to determine that
the object was failing because it could not locate “libstdc++-6.dll”.

cygcheck: track_down: could not find libstdc++-6.dll

I thus located ./gcc/i686-pc-mingw32/4.5.2/debug/libstdc++-6.dll and
copied it to my local build area, which ultimately did in fact resolve
my issue.  However, I would prefer NOT to have to distribute this dll
with my executables and so I am thus now attempting to figure out how
I can go about linking this new, apparently required library,
statically, however I can’t seem to locate libstdc++-6.a or
libstdc++-6.so anywhere in my cygwin repository.  I've been trying to
make use of '-static-libstdc++' option, however I see that it keeps
telling me that it is not recognized:

i686-pc-mingw32-gcc: unrecognized option '-static-libstdc++'

I'm also not real sure what the difference is between libstdc++-6 and
libstdc++, so I'm not positive -static-libstdc++ would be the correct
solution either, even if I could get that to work.

Anyone who can provide me with any further insight or useful
information would be greatly appreciated!

Thanks in advance.

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


- Raw text -


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