Thread View: comp.sys.next.misc
2 messages
2 total messages
Started by Chuck Parsons
Tue, 15 Dec 1992 00:20
GNUPLOT under 3.0
Author: Chuck Parsons
Date: Tue, 15 Dec 1992 00:20
Date: Tue, 15 Dec 1992 00:20
19 lines
1185 bytes
1185 bytes
I brought this up several months ago when I first got my NeXT.
I never got a fix, though I did get help for several other
problems in my post.
Has anyone gotton GNUPLOT to compile under 3.0? I'm having
trouble in the term module. Specifically, some of the NeXTStep
headers (in appkit) with constructs like
somtheing = (id<NXDraggingInfo>) something else
refuse to compile. The compiler complains about not being able
to find the ")" after the (id. Random attemps to trivially change the
syntax (in hopes that it is only a parser bug), like adding spaces
do not work. I suspect some knowledge of object oriented c programming
might help.
Thanks in advance for any help,
Regards, chuck@pierre.mit.edu
Re: GNUPLOT under 3.0
Author: Andreas Haug
Date: Tue, 15 Dec 1992 20:31
Date: Tue, 15 Dec 1992 20:31
34 lines
1983 bytes
1983 bytes
chuck@pierre.mit.edu (Chuck Parsons) writes:
> Has anyone gotton GNUPLOT to compile under 3.0? I'm having
>trouble in the term module. Specifically, some of the NeXTStep
>headers (in appkit) with constructs like
> somtheing = (id<NXDraggingInfo>) something else
>refuse to compile. The compiler complains about not being able
>to find the ")" after the (id. Random attemps to trivially change the
>syntax (in hopes that it is only a parser bug), like adding spaces
>do not work. I suspect some knowledge of object oriented c programming
----------------------------------------------------------
>might help.
------------
You have given the answer already. The problem is that the objective-C
code is included from a "plain C" program who's filename ends with ".c".
Since NextStep 3.0 (really: since GNU-C 1.whatever) the compiler just
forgets all he knows about objective-c _if_ the source file has the
".c"-Extension. So to provide the compiler with knowledge of object
oriented c programming" one has to use the correct extension.
Workaround: rename "term.c" (if mind serves...) to "term.m", edit the
Makefile accordingly. (Thanks to Frank Siegert who found this out.)
Best regards,
Andreas.
--
------------------------------ahaug@mailserv.zdv.uni-tuebingen.de
"It's not too late to start again; days go by and seasons change;
nothing stays the same; life's an endless game; between strangers."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads