This is Summary:-Non-NeXT-ObjC-programs in view mode; [Up]
Date: Sun 08-Oct-1991 13:41:35 From: jgg@proforma.com (J. G. Gregory) Subject: Summary: Non-NeXT ObjC programs I asked a vague question last week about trying to compile "basic" ObjC programs. That is, programs which use Object and other low-level classes, but which do not use any AppKit stuff. In the meantime, I have determined that there is no such thing as "basic" ObjC. I strongly suspect the even "Object" as defined by NeXT is different from other Objects, such as StepStone's. I am ignoring that issue for the time being. My specific problem was getting Undefined symbols: __NXArgc, __NXArgv, and __environ when trying to link. I couldn't figure out where these were coming from. It turns out that "ld" does what you tell it and gets the error, but "cc" (which links by default) links in a couple additional libraries which solve the problem. Hence, changing "ld" to "cc" in my makefile resulted in building a simple ObjC program which runs. You will need to link libsys_s for basic stuff to work, but not libNeXT_s. I received bits and pieces of this from several sources. Thanks. --J Gregory
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.