[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of libobjc from gcc 4.1 with MinGW
From: |
Helge Hess |
Subject: |
Re: Use of libobjc from gcc 4.1 with MinGW |
Date: |
Wed, 21 Mar 2007 21:18:37 +0100 |
On Mar 21, 2007, at 17:52, Xavier Glattard wrote:
Why the hell should libobjc be build as a dll ???? ;-)
Don't know whether this was really a joke ;-)
Anyways, its *very* important that libobjc is built as a DLL if you
build any other ObjC library/framework/bundle as a shared object.
Otherwise you end up with multiple ObjC runtimes in a single
application! This has cost me a LOT of time in the past because its
an easy to make mistake.
DLLs do not work like a shared library on Unix, they are much more
separated (which is why you need the DLL *and* the static stub
library to access the actual contents of a DLL). A DLL gets its own
memory in Windows, its almost like a separate process.
Notably thats actually a very cool feature for using Objective-C for
Windows development. Because ObjC stuff is bound dynamically using
the ObjC runtime, you don't need to fiddle as much with Windows
linking as with plain C or C++.
Greets,
Helge
--
Helge Hess
http://www.helgehess.eu/
- Use of libobjc from gcc 4.1 with MinGW, Xavier Glattard, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW, Andrew Pinski, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW, Xavier Glattard, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW, Andrew Pinski, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW, Xavier Glattard, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW, Andrew Pinski, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW, Xavier Glattard, 2007/03/21
- Re: Use of libobjc from gcc 4.1 with MinGW,
Helge Hess <=
- Re: Use of libobjc from gcc 4.1 with MinGW, Xavier Glattard, 2007/03/22
- Re: Use of libobjc from gcc 4.1 with MinGW, Helge Hess, 2007/03/22
- Re: Use of libobjc from gcc 4.1 with MinGW, Andrew Pinski, 2007/03/22
Re: Use of libobjc from gcc 4.1 with MinGW, Xavier Glattard, 2007/03/21