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/
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev