On 2009-11-13 22:46+0100 Werner Smekal wrote: > Hi Alan, > > I managed to compile qt 4.5.3 with Visual C++ and confirmed the problems > addressed in this patch. I applied the patch (slightly modified it) and > commited the changes. I closed the patch report.
Thanks, Werner. However, I found the result did not compile on Linux. Here was the error message: In file included from /home/software/plplot_cvs/HEAD/plplot_cmake_qt/bindings/qt_gui/plqt.cpp:34: /home/software/plplot_cvs/HEAD/plplot_cmake_qt/include/qt.h:92: error: invalid use of ‘extern’ in linkage specification That line had a double extern (which I have never heard of). I replaced that with a single extern (revision 10586), that is -extern "C" extern PLDLLIMPEXP_DRIVER_DATA( const char* ) plD_DEVICE_INFO_qt; +extern "C" PLDLLIMPEXP_DRIVER_DATA( const char* ) plD_DEVICE_INFO_qt; and gcc was happy again, and all the qt device tests (done with the newly implemented test_all_qt target accessible if you use -DBUILD_TEST=ON) went fine. Hopefully, the Windows native compiler does not demand the double extern and that was merely a typographical error introduced in the original patch that the Windows native compiler tolerated before. Please let me know it that is the case. 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 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 __________________________ ------------------------------------------------------------------------------ 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