Hi,
In accordance with instructions at
http://www.miscdebris.net/plplot_wiki/index.php?title=Configure_PLplot_for_cygwin
I'm running:
$ cmake -DCMAKE_INSTALL_PREFIX=~/dyn_lib -DENABLE_tk=OFF -DENABLE_tcl=OFF
../
That proceeds ok, but when I subsequently run 'make', the process errors out
with:
#####################################
Scanning dependencies of target cairo
[ 56%] Building C object drivers/CMakeFiles/cairo.dir/cairo.c.o
In file included from
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/windows.h:87,
from /home/Rob/comp/plplot-5.9.7/drivers/cairo.c:62:
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:255:
error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:270:
error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:291:
error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:316:
error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:571:
error: two or more data types in declaration specifiers
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winspool.h:594:
error: two or more data types in declaration specifiers
make[2]: *** [drivers/CMakeFiles/cairo.dir/cairo.c.o] Error 1
make[1]: *** [drivers/CMakeFiles/cairo.dir/all] Error 2
make: *** [all] Error 2
#####################################
Lines 255, 270, 291, 316, 571 and 594 of winspool.h are all the same:
DWORD Status;
and they all occur somewhere in the midst of a 'typedef struct'
declaration - eg:
#####################################
262: typedef struct _JOB_INFO_1W {
263: DWORD JobId;
264: LPWSTR pPrinterName;
265: LPWSTR pMachineName;
266: LPWSTR pUserName;
267: LPWSTR pDocument;
268: LPWSTR pDatatype;
269: LPWSTR pStatus;
270: DWORD Status;
271: DWORD Priority;
272: DWORD Position;
273: DWORD TotalPages;
274: DWORD PagesPrinted;
275: SYSTEMTIME Submitted;
276: } JOB_INFO_1W,*PJOB_INFO_1W,*LPJOB_INFO_1W;
#####################################
Is the error message telling me that 'Status' has already been defined as a
data type somewhere ? (If so, I failed to discover the location of that
definition.)
Any help appreciated.
Cheers,
Rob
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general