help-gnustep
[Top][All Lists]
Advanced

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

Re: GNUmakefile help


From: Nicola Pero
Subject: Re: GNUmakefile help
Date: Mon, 8 Jul 2002 17:27:49 +0100 (BST)

Hi Benjamin,

I'm happy to see you've solved your problems.

I think the remaining problem is because EDCommon is using the AppKit ...
maybe EDCommon is only supposed to be used in a gui application ?  I'm not
sure.

I have put in Cc: the gnustep-help mailing list ... maybe (hopefully)
someone who knows EDCommon can help you.


On Mon, 8 Jul 2002, Benjamin S Um wrote:

> Nicola,
> 
> Thanks for the reply!
> 
> Your hint to check my /opt/GNUstep/Local/Headers dir
> clued me into what my problem was. I thought
> I had successfully installed EDInternet, but when
> I looked into the /opt/GNUstep/Local/Headers dir
> I didn't find a link to the framework. Turns
> out the attempt to make and install the EDInternet
> framework couldn't finish because I didn't
> have yacc installed on my Linux Box.
> 
> After I built and installed byacc, I now have
> EDCommon, EDInternet and XMLRPC links in the
> /opt/GNUstep/Local/Headers directory.
> 
> Now when I try to build my simple project I get the
> following output:
> 
> /usr/bin/ld: warning: type and size of dynamic symbol
> `__objc_class_name_NSFileHandle' are not defined
> /usr/bin/ld: warning: type and size of dynamic symbol
> `__objc_class_name_NSConstantString' are not defined
> /usr/bin/ld: warning: type and size of dynamic symbol
> `__objc_class_name_NSArray' are not defined
> /usr/bin/ld: warning: type and size of dynamic symbol
> `__objc_class_name_NSString' are not defined
> /usr/bin/ld: warning: type and size of dynamic symbol
> `__objc_class_name_NSAssertionHandler' are not defined
> /usr/bin/ld: warning: type and size of dynamic symbol
> `__objc_class_name_NSAutoreleasePool' are not defined
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `GSCurrentContext'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSBezierPath'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSLinkAttributeName'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSPasteboard'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSViewFrameDidChangeNotification'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSButton'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSDrawColorTiledRects'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSCell'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSView'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSWorkspace'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSBox'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDInternet.so:
> undefined reference to `NSDeviceWhiteColorSpace'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSFontAttributeName'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSColor'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSScrollView'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSRunAlertPanel'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSOutlineView'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSMatrix'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSForegroundColorAttributeName'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSUnderlineStyleAttributeName'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSRectFill'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSControl'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `crypt'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSPopUpButton'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSDrawLightBezel'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDInternet.so:
> undefined reference to `NSDeviceBlackColorSpace'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSTableColumn'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSTextAttachment'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSTableView'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `NSDragPboard'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDInternet.so:
> undefined reference to `__objc_class_name_NSImage'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDInternet.so:
> undefined reference to `__objc_class_name_NSBitmapImageRep'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSWindow'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSFileWrapper'
> /opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libEDCommon.so:
> undefined reference to `__objc_class_name_NSApplication'
> collect2: ld returned 1 exit status
> make[1]: *** [shared_obj/ix86/linux-gnu/gnu-gnu-gnu/myxml] Error 1
> make: *** [myxml.all.tool.variables] Error 2
> 
> 
> I couldn't successfully build WindowMaker. Could this
> cause all of these problems? I just want to build
> a command line tool, so I don't need a GUI. I noticed
> that there are a bunch of AppKit kind of stuff in
> this output. Why is the compiler complaining about
> AppKit stuff when I don't use any AppKit objects in
> my command line tool. My whole project only consists
> of a main function.
> 
> #import <Foundation/Foundation.h>
> #import <XMLRPC/XMLRPC.h>
> #import <EDInternet/EDInternet.h>
> 
> int main (int argc, const char * argv[]) {
> NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
> NSString *mystring;
> NSFileHandle *inputHandle;
> NSArray *myArray;
> NSFileHandle *outputHandle;
> NSData *input;
> NSData *output;
> XRConnection *connection;
> NSLog(@"new test");
> myArray=[NSArray arrayWithContentsOfFile:@"array"];
> NSLog([myArray objectAtIndex:1]);
> inputHandle=[NSFileHandle fileHandleWithStandardInput];
> input=[inputHandle availableData];
> mystring=[NSString stringWithCString:[input bytes]];
> NSLog(@"Hello, World! %@",mystring);
> [pool release];
> return 0;
> }
> 
> I'm only using XRConnection in my project, so why would I get
> errors about undefined references to all of these AppKit
> objects (NSImage, NSWindow, NSDragPboard.......)?
> 
> Any ideas?
> thanks
> Ben
> um@shay.ecn.purdue.edu
> 
> P.S. I built and installed the following:
> 
> gnustep-make
> gnustep-base
> gnustep-gui
> gnustep-back
> EDCommon
> EDInternet
> XMLRPC
> 
> 
> 




reply via email to

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