On 2014-02-11 09:12-0000 Arjen Markus wrote: > The error messages with SWIG come from the flag -ansi: > > $ gcc -o test-compile test-compile.c -DSTAT -ansi > test-compile.c: In function 'main': > test-compile.c:18:17: error: storage size of 'st' isn't known > struct stat st; > ^ > > The real question is: where is the flag -ansi coming from? It appears > together with -Wall -pedantic in the make files but I can not find its > origins anywhere in PLplot or CMake (I have not checked the CMake > executables, assuming all that sort of flags would be contained in the > configuration files instead). >
Remember, although epa_build is configured with CMake, that is just a convenient but rather thin layer over the configure and build done by a project's native build system. In the swig case, that native build system is autotools, and the configuration is done with a "configure" script that is set up by autotools. That script is where the above flags are coming from. However, those flags gave me absolutely no trouble for the swig build on MinGW/MSYS/Wine. I hope that explanation helps. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel