From: Alan W. I. <ir...@be...> - 2006-08-18 12:53:32
|
On 2006-08-18 06:40+0200 Arjen Markus wrote: >>> 3. Enabling all drivers, shared libraries off: >>> Complaints from the compiler (gcc) about tkwin.c: >>> a parse error (if I remember correctly) about "nmemb" at >>> line 1823. >> >> Please give the exact error message (with a lot of surrounding context) >> and not a paraphrase. > Using the following command-line (left all drivers on by mistake): > > /cygdrive/c/arjen/cmake-cygwin/CMake/bin/cmake -DBUILD_TEST:BOOL=ON > -DBUILD_SHARED_LIBS:BOOL=OFF -DDEFAULT_NO_DEVICES:BOOL=OFF -DPLD_ps:BOOL=ON > -G "Unix Makefiles" ../plplot > > in the build directory I get (from make): > > /cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.c:1823: error: > parse error before "nmemb" > /cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.c: In function > `ckcalloc': > /cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.c:1826: error: > `size' undeclared (first use in this function) > /cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.c:1826: error: > (Each undeclared identifier is reported only once > /cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.c:1826: error: for > each function it appears in.) > /cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.c:1826: error: > `nmemb' undeclared (first use in this function) > make[2]: *** > [src/CMakeFiles/plplotd.dir/cygdrive/c/arjen/plplot-5.6.1-cmake/plplot/drivers/tkwin.o] Error 1 > make[1]: *** [src/CMakeFiles/plplotd.dir/all] Error 2 > make: *** [all] Error 2 I am not much of a C expert, but the original author of the tkwin device (Vince Darley who may be lurking on list here) was obviously trying to do a horrible hack of all the memory management stuff with a bunch of #undef's and #defs near the front of this file. This fragile mess works on Linux and some forms of windows, but obviously not on your version of Cygwin. Anyhow, this seems a tough problem to me so I suggest you bypass this for now with -DPLD_tkwin=OFF on Cygwin. I don't know what to say regarding the other Cygwin problems you encountered. Your C++ problem cannot be replicated by Werner so I encourage you to replicate how he has installed his Cygwin tool chain. With regard to the lt_dlinit() problem, I still need the details I asked for to make further progress. 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); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ |