home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / misc / 23086 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.belwue.de!news.uni-tuebingen.de!andreas
  3. From: andreas@atlas.physchem.chemie.uni-tuebingen.de (Andreas Haug)
  4. Subject: Re: GNUPLOT under 3.0
  5. Message-ID: <andreas.724451478@atlas>
  6. Sender: news@softserv.zdv.uni-tuebingen.de (News Operator)
  7. Organization: Comp. Center (ZDV) U of Tuebingen, FRG
  8. References: <14DEC199219205967@pierre.mit.edu>
  9. Date: Tue, 15 Dec 1992 20:31:18 GMT
  10. Lines: 34
  11.  
  12. chuck@pierre.mit.edu (Chuck Parsons) writes:
  13. >  Has anyone gotton GNUPLOT to compile under 3.0?  I'm having
  14. >trouble in the term module. Specifically, some of the NeXTStep
  15. >headers (in appkit) with constructs like
  16.  
  17. >    somtheing = (id<NXDraggingInfo>) something else 
  18.  
  19. >refuse to compile. The compiler complains about not being able
  20. >to find the ")" after the (id.  Random attemps to trivially change the 
  21. >syntax (in hopes that it is only a parser bug), like adding spaces 
  22. >do not work. I suspect some knowledge of object oriented c programming
  23.              ----------------------------------------------------------
  24. >might help. 
  25. ------------
  26.  
  27. You have given the answer already. The problem is that the objective-C
  28. code is included from a "plain C" program who's filename ends with ".c".
  29. Since NextStep 3.0 (really: since GNU-C 1.whatever) the compiler just
  30. forgets all he knows about objective-c _if_ the source file has the
  31. ".c"-Extension. So to provide the compiler with knowledge of object 
  32. oriented c programming" one has to use the correct extension.
  33.  
  34. Workaround: rename "term.c" (if mind serves...) to "term.m", edit the
  35. Makefile accordingly. (Thanks to Frank Siegert who found this out.)
  36.  
  37. Best regards,
  38.  
  39. Andreas.
  40.  
  41.  
  42. --
  43. ------------------------------ahaug@mailserv.zdv.uni-tuebingen.de
  44. "It's not too late to start again; days go by and seasons change;
  45.  nothing stays the same; life's an endless game; between strangers."
  46.