-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/22/2011 08:22, Dock, Dion wrote:
> Is it possible to create a library with MinGW64's gcc and use Cygwin's gcc to 
> link it into a binary?  Or is this breaking the "use the same compiler for 
> all parts" rule of thumb?
> 
> I've created a 32 bit library using MinGW64.  However, the binary has 
> problems.  If I invoke it from Cygwin, I get
>                R6034
>                An application has made an attempt to load the C runtime 
> library incorrectly.
> Invoking the exe from a Command shell produces
>                The program can't start because cygwin1.dll is missing from 
> your computer.
> 
> What am I missing?
> 
> thanks again,
> -Dion
> 

Hi,

No, you are not supposed to mix compiler outputs together.

mingw and by extention mingw-w64 uses the msvcrt runtime provided by MS,
while Cygwin provides its own. So there is a potential clash there.

Furthermore, mingw-w64 ABI and Cygwin ABI differ, so don't expect your
program to work right even if they link right.

So, in short, "use the same compiler for all parts".

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)

iEYEARECAAYFAk2wygYACgkQp56AKe10wHc/dACaAxccEkYbXiQHUnyrMS13qbvk
fPEAn2hJqfNFhYIGAC3q0paBme+UTJHW
=DsYi
-----END PGP SIGNATURE-----

Attachment: 0xED74C077.asc
Description: application/pgp-keys

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to