From bug-octave-request at bevo dot che dot wisc dot edu Fri Oct 17 21:52:49 1997 Subject: builtins.cc generator error From: jcardoso at inescn dot pt To: bug-octave at bevo dot che dot wisc dot edu Date: Sat, 18 Oct 1997 00:53:01 GMT Hi, I tried the pgplot wrapper interface, and it worked with two small modifications, one of them caused by a bug in octave, I believe. As I can't compile shared libs (ld core dumps on libointerp.so, all others .so link OK), I haven't tried dinamic link, so I must have all static. For completeness, I have an SCO-UNIX 3.2v5.0.2: >`uname -X' System = SCO_SV Release = 3.2v5.0.2 Machine = Pentium ... 1-I edited src/Makefile and added 'pgplot_octave.cc` to the end of `DLD_SRC' and `-lcpgplot -lpgplot' at the end of `OCTAVE_LIBS' '-lX11 -lsocket' at the end of `LIBS' I have installed the pgplot server, include files and libraries in standard places. 2-After make, the generator of `builtins.cc' made an error: builtins.cc: In function `void install_pgplot_octave_fcns()': builtins.cc:637: cannot declare static function inside another function builtins.cc:637: parse error before `{' builtins.cc: In function `void install_builtins()': builtins.cc:701: warning: implicit declaration of function `int install_builtin_functions(...)' the offending code: static void install_pgplot_octave_fcns (void) { extern octave_value_list Fpgplot_octave (const octave_value_list& arg$ { <---------EXTRA } static void install_builtin_functions (void) { After correcting the error, the demo run OK. Thanks, Joao -- Joao Cardoso, INESC | e-mail: jcardoso at inescn dot pt R. Jose Falcao 110 | tel: + 351 2 2094345 4050 Porto, Portugal | fax: + 351 2 2008487