Re: creating statically linked binaries
Markus Hitter <[email protected]>
| Newsgroups | gmane.os.opendarwin.general |
|---|---|
| Message-ID | <[email protected]> |
Am 13.01.2005 um 11:55 schrieb brendan Murphy: > Im thinking to get around this I build a static (Objective-C or > possible ANSI C++) binary (with no OS calls) and use this under OF. Is > this really that impossible??????? Objective-C is dynamic by definition and by implementation so, no, it's impossible link a static Obj-C binary. For C++, you have to avoid any of the dynamic features, making it essentially C with syntactic sugar. > I end up maintaining a C and C++/OBJ-C of version of simular code. Since you already have a C version and Obj-C is a superset of C and there is no border line between them, why don't you use C with "Obj" for the OS part and stay with C without "Obj" for the OF part? Different build rules for both targets but no need to duplicate code. Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/