This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cannot link ___assert, __impure_ptr with -mno-cygwin
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Mar 2005 13:48:49 -0500
- Subject: Re: Cannot link ___assert, __impure_ptr with -mno-cygwin
- References: <94BF3137C62D3E4CAED7E97F876585F07639A8@pauex2ku08.agere.com>
- Reply-to: cygwin at cygwin dot com
On Tue, Mar 29, 2005 at 01:30:00PM -0500, Williams, Gerald S (Jerry) wrote:
>Matt Olson wrote:
>> Unfortunately, while "compile .o files with -mno-cygwin" fixes my toy
>> example, it doesn't help the real code I'm trying to build:
>[...]
>> If the problem is object files being compiled without -mno-cygwin and
>> linked with it, do I need to make sure that all of the (static?)
>> libraries I link with are also compiled with -mno-cygwin?
>
>Yes, that's no doubt what's going on. You are trying to link
>some object files that depend on the Cygwin runtime library
>and others that depend on the MinGW library. If you can, you
>should choose one or the other entirely, which should resolve
>your link issues.
>
>If you're looking for some way to link some libraries that
>depend on Cygwin and others that depend on MinGW, I have no
>experience with that.
i.e., "Don't do that".
In general, you can't mix cygwin and non-cygwin libraries.
--
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/