home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / help / 3050 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.5 KB  |  66 lines

  1. Path: sparky!uunet!oracle!unrepliable!bounce
  2. Newsgroups: gnu.gcc.help
  3. From: coei@prodhp.us.oracle.com (Chris Oei)
  4. Subject: symbol __objc_class_name_Object undefined
  5. Message-ID: <1993Jan28.180049.20781@oracle.us.oracle.com>
  6. Sender: usenet@oracle.us.oracle.com (Oracle News Poster)
  7. Nntp-Posting-Host: prodhp
  8. Organization: Oracle Corp., Redwood Shores CA
  9. Date: Thu, 28 Jan 1993 18:00:49 GMT
  10. X-Disclaimer: This message was written by an unauthenticated user
  11.               at Oracle Corporation.  The opinions expressed are those
  12.               of the user and not necessarily those of Oracle.
  13. Lines: 51
  14.  
  15.  
  16. When I try to use gcc-2.3.3 on AIX 3.2, I got the following:
  17.  
  18.  
  19. amnesia> gcc -c m.m
  20. Assembler:
  21. /tmp/ccUOMDM2.s: line 175: 1252-023 The symbol __objc_class_name_Object is not d
  22. efined.
  23. /tmp/ccUOMDM2.s: line 175: 1252-040 The specified expression is not valid.
  24.         Make sure that all symbols are defined.
  25.         Check the rules on symbols used in an arithmetic expression
  26.         concerning relocation.
  27.  
  28. The file in question is
  29.  
  30. #include <stdio.h>
  31. #include <Object.h>
  32.  
  33. @interface A : Object {
  34.         int x;
  35. }
  36.  
  37. - show;
  38. @end
  39.  
  40. @implementation A : Object {
  41.         int x;
  42. }
  43.  
  44. -show
  45. {
  46.         printf("%d\n",x);
  47. }
  48.  
  49. @end
  50.  
  51. I also got the same error using gcc-2.3.1 on SunOS 4.1
  52.  
  53. Anyone have any ideas what's wrong?
  54.  
  55. If anyone has gotten the objective-c part of gcc to work properly on either
  56. machine, I'd be interested in hearing about it.  At least I'd know there
  57. exists some way of getting it to work.
  58.  
  59. Help!
  60.  
  61. (please?)
  62.  
  63. Thanks,
  64. Chris
  65. coei@oracle.com
  66.