I've come a bit further with my Octave/Windows/PLplot problem. For test purposes I replaced the fork in "matwrap" with a simple open. (As far as I understand the fork is supposed to prevent problems with quotes, which I don't have in my calls.) This worked fine, but I'm running into new difficulties:
The "matwrap" script now dies like this: unrecognized type 'FI' plplot_octave.h:0: fatal error: when writing output to : Invalid argument compilation terminated. Through extensive debug output I traced this problem to the "parse_str" function, which seems unable to interpret MinGW's stdio.h / stdlib.h and possibly others as well. The garbled call comes in the section "# Look for variable definitions:" around line ~480, where a regexp replacement seems to fail. The following call to "canonicalize_type" consequently fails. When in stdio.h, the regular expression tries to match to, for example $_= typedef struct _iobuf 0 FILE; extern ; FILE* ; FILE* ; int ; int ; int ; int ; FILE* ; char* ; ... and comes up with $1=[](\06, i guess), $2=FI and $3=LE. The catch is probably the typedef ...{...} FILE; , since there is no variable name following. Ideas, anyone? It is annoying that the build fails on a collector/preparation script. ;-) Daniel > On Tue, Aug 18, 2009 at 05:03:39PM +0200, Daniel Sachse wrote: >> Hi all, >> >> I've sent this question as a Support Request on SFnet and was referred >> to this mailing list (not without some good initial help, thanks smekal). >> >> The case is this: >> >> I'm trying to get PLplot to work together with Octave on a (urks) >> Windows machine. PLplot compiles (and runs) fine for GCC but as soon as >> I enable the Octave binding, I get this: >> >> > mingw32-make >> [..] >> [ 43%] Generating plplot_octave.cc, tmp_stub >> '-' is not recognized as an internal or external command, >> operable program or batch file. >> matwrap: C preprocessor exited with error status >> mingw32-make[2]: *** [bindings/octave/plplot_octave.cc] Error 2 >> mingw32-make[1]: *** [bindings/octave/CMakeFiles/plplot_octave.dir/all] >> Error 2 >> mingw32-make: *** [all] Error 2 >> >> >> The "is not recognized" expression is a Windows command line error >> message when it tries to open/run something that does not exist. >> >> I have traced the error to the perl script matwrap, line ~211 >> (plus/minus) where it seems that the program wants to try and fork - >> which, in Windows, leads to problems. What can I do? >> >> Greetings from Oslo, >> Daniel >> Huge fan of Open Source, but unfortunately bound to Windows. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel