This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: static vs. shared linking
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: David Stacey <drstacey at tiscali dot co dot uk>, cygwin at cygwin dot com
- Date: Tue, 31 Mar 2015 03:38:11 +0300
- Subject: Re: static vs. shared linking
- Authentication-results: sourceware.org; auth=none
- References: <5510A9AB dot 7020607 at tiscali dot co dot uk> <5511AF73 dot 9070607 at tiscali dot co dot uk> <20150325090453 dot GB3017 at calimero dot vinschen dot de> <551339E4 dot 60705 at tiscali dot co dot uk> <20150330105529 dot GJ29875 at calimero dot vinschen dot de> <5519A0E1 dot 6020707 at tiscali dot co dot uk> <395196416 dot 20150330233026 at yandex dot ru> <5519D613 dot 5030501 at tiscali dot co dot uk>
- Reply-to: cygwin at cygwin dot com
Greetings, David Stacey!
>>> Back to the matter in hand - I don't suppose you had thoughts on why my
>>> simple application crashes when linked as shared, but works fine when
>>> linked statically?
>> Probably I've missed this bit before, forgive me if I did, but have you
>> rebased your library after linking?
> Thank you for your reply. I tried this two different ways:
> - Running 'rebase -s' on cygcrash_library.dll;
> - Moving 'cygcrash_library.dll' into /usr/bin and triggering a full
> rebase using 'rebase-trigger full' and then running setup-x86_64.exe.
I think you need to rebase both your app and library (assuming they both
Cygwin dependent).
Simply moving it around wouldn't help, rebase only tend to apps in its list(s).
> Sadly, neither of these made any difference - the application still
> crashed :-(
Well, shoot... was worth a try, at the very least.
--
With best regards,
Andrey Repin
Tuesday, March 31, 2015 03:22:01
Sorry for my terrible english...
--
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