discuss-gnustep
[Top][All Lists]
Advanced

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

Can't build apps on Solaris


From: Dan Debertin
Subject: Can't build apps on Solaris
Date: 09 Mar 2003 19:20:25 -0600
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

There are messages about this all over groups.google, but none of the
advice is working for me. I have no ObjC background, though I'm
attempting to obtain some, so I'm starting by building the example
program linked from www.gnustep.org:

#include <stdio.h>
#include <Foundation/Foundation.h>

@interface Test
+ (const char *) classStringValue;
@end

@implementation Test
+ (const char *) classStringValue;
{
  return "This is the string value of the Test class";
}
@end

int main(void)
{
  printf("%s\n", [Test classStringValue]);
  return 0;
}

Compilation per the document:

http://www.gnustep.org/resources/documentation/manual_toc.html

with: 

GCC-3.2.1 and gnustep-base-1.5.2 on Solaris 8

dies with:

Making all for tool TestObjC...
mkdir -p ./shared_obj/sparc/solaris2.8/gnu-gnu-gnu
 Linking tool TestObjC ...
Undefined                       first referenced
 symbol                             in file
gnustep_base_user_main              
/usr/local/GNUstep/System/Libraries/sparc/solaris2.8/gnu-gnu-gnu/libgnustep-base.so
ld: fatal: Symbol referencing errors. No output written to 
shared_obj/sparc/solaris2.8/gnu-gnu-gnu/TestObjC
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/sparc/solaris2.8/gnu-gnu-gnu/TestObjC] Error 1
make: *** [TestObjC.all.tool.variables] Error 2

The solution seems to be to use --enable-fake-main, but that had no
effect on the outcome, nor did (just to be safe) --disable-fake-main.

Is there a new-and-improved solution to this problem? I don't even
seem to have a fake-main.h as the archives suggest I should...

TIA,

Dan
--
/^Dan Debertin$/         |
airboss@nodewarrior.org  | 
www.nodewarrior.org      | 





reply via email to

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