Mail Archives: djgpp/1994/10/20/12:36:37
>
> Hello,
>
> I started to try compiling Objective-C programs with my gnu cc
> implementation (djgpp 1.12, gcc 2.6.0 on a 486 under MS-DOS).
>
> A very short program, with
You gotta include at least:
#include <objc/Object.h>
>
> main()
> {
> [Object alloc] ;
> }
>
> generated (using gcc main.m -o main -lobjc) errors telling me
>
> Undefined symbol "global constructors keyed to main" referenced
>
> There was a similar question a few days ago concerning the linux
> implementation of Objective-C in the news. It was mentioned, that the old
> version of gcc (2.5.8) does not have this problem.
>
> Also I could not compile the sample program of the news faq.
>
> Could anybody out there give me some advice.
>
> Thanks in advance
>
> Oliver
>
> +----------------------------------------------------------------------------+
> |Dipl. Math. Oliver Schuele | |
> |Kernforschungszentrum Karlsruhe | Internet os AT resy2 DOT kfk DOT de |
> |Institut fuer Neutronenphysik und Reaktortechnik | Phone +49 7247 82 4691|
> |P.O. Box 3640 76021 Karlsruhe Germany | FAX +49 7247 82 5508|
> +----------------------------------------------------------------------------+
>
--Chris Christoph P. U. Kukulies kuku AT acds DOT physik DOT rwth-aachen DOT de
FreeBSD 2.0.0 (Development) #0: Tue Oct 11 22:00:50 1994
root AT mvx1b1:/usr/src/sys/compile/JAZZ
- Raw text -