discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to Build a Tool that uses NSApplication...


From: lloyd . sargent
Subject: How to Build a Tool that uses NSApplication...
Date: 31 Oct 2006 16:22:50 -0800
User-agent: G2/1.0

Basically I want to build a tool that does some processing of NSImages
(but never displays them).

Okay, but when I use the following make file:

include $(GNUSTEP_MAKEFILES)/common.make

TOOL_NAME = ObjectiveC
ObjectiveC_OBJC_FILES = ObjectiveC.m

include $(GNUSTEP_MAKEFILES)/tool.make

I get a bunch of linker messages:

Making all for tool ObjectiveC...
 Linking tool ObjectiveC ...
./shared_obj/ObjectiveC.o: In function `main':
ObjectiveC.m:(.text+0x5b4): undefined reference to
`NSFontAttributeName'
ObjectiveC.m:(.text+0x647): undefined reference to
`NSForegroundColorAttributeName'
./shared_obj/ObjectiveC.o:(.data.rel+0x4): undefined reference to
`__objc_class_name_NSApplication'
./shared_obj/ObjectiveC.o:(.data.rel+0x8): undefined reference to
`__objc_class_name_NSWindow'
./shared_obj/ObjectiveC.o:(.data.rel+0xc): undefined reference to
`__objc_class_name_NSView'
./shared_obj/ObjectiveC.o:(.data.rel+0x10): undefined reference to
`__objc_class_name_NSImage'
./shared_obj/ObjectiveC.o:(.data.rel+0x1c): undefined reference to
`__objc_class_name_NSFont'
./shared_obj/ObjectiveC.o:(.data.rel+0x20): undefined reference to
`__objc_class_name_NSColor'
./shared_obj/ObjectiveC.o:(.data.rel+0x2c): undefined reference to
`__objc_class_name_NSBitmapImageRep'
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/ObjectiveC] Error 1
make: *** [ObjectiveC.all.tool.variables] Error 2

Well, it is obvious I need to add SOMETHING to tell it to link in some
libraries... My question is what?!?

As I say, this is purely a tool and will do zero (zip/nada) screen
display.

Any help would be appreciated!

Lloyd



reply via email to

[Prev in Thread] Current Thread [Next in Thread]