Hi Werner:
As our C++/Windows expert would you be willing to take a look at this patch?
For your convenience I have downloaded it and attached it to this post.
The patch is quite small (~10 changed lines), but I don't understand the C++
implications of these suggested changes to allow qt.cpp to build on MSVC 9.0
(2008) so I don't feel competent to apply this patch myself.
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
__________________________
---------- Forwarded message ----------
Date: Tue, 10 Nov 2009 10:38:51 +0000
From: SourceForge.net <nore...@sourceforge.net>
To: nore...@sourceforge.net
Subject: [Plplot-devel] [ plplot-Patches-2895119 ] qt driver - proper MSVC
exports
Patches item #2895119, was opened at 2009-11-10 11:38
Message generated for change (Tracker Item Submitted) made by kapelrud
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=302915&aid=2895119&group_id=2915
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: André Kapelrud (kapelrud)
Assigned to: Nobody/Anonymous (nobody)
Summary: qt driver - proper MSVC exports
Initial Comment:
Compiling plplot with MSVC 9.0 (2008) failed due to some missing/conflicting
__declspec() specifiers.
There were also a mangled name (C++) of the plD_DEVICE_INFO_qt in qt.cpp.
See attached patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=302915&aid=2895119&group_id=2915
------------------------------------------------------------------------------
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
Index: drivers/qt.cpp
===================================================================
--- drivers/qt.cpp (revision 10575)
+++ drivers/qt.cpp (working copy)
@@ -34,10 +34,6 @@
#include "qt.h"
#include <QMutexLocker>
-extern int vectorize;
-extern int lines_aa;
-extern MasterHandler handler;
-
// global variables initialised in init(), used in tidy()
// QApplication* app=NULL;
static int argc; // argc and argv have to exist when tidy() is used, thus they are made global
@@ -45,7 +41,7 @@
static int appCounter = 0; // to be rigorous, all uses should be placed between mutexes
// Drivers declaration
-PLDLLIMPEXP_DRIVER const char* plD_DEVICE_INFO_qt =
+extern "C" PLDLLIMPEXP_DRIVER const char* plD_DEVICE_INFO_qt =
#if defined ( PLD_bmpqt )
"bmpqt:Qt Windows bitmap driver:0:qt:66:bmpqt\n"
#endif
Index: include/qt.h
===================================================================
--- include/qt.h (revision 10575)
+++ include/qt.h (working copy)
@@ -91,6 +91,8 @@
class PLDLLIMPEXP_QT QtPLDriver;
+extern "C" extern PLDLLIMPEXP_DRIVER_DATA(const char*) plD_DEVICE_INFO_qt;
+
// Master Device Handler for multiple streams
// Only handles multiple Qt devices
class PLDLLIMPEXP_QT MasterHandler : public QObject
@@ -401,4 +403,8 @@
#define initplplot_pyqt4 PLDLLIMPEXP_PYQT4 initplplot_pyqt4
#endif
+extern PLDLLIMPEXP_QT_DATA(int) vectorize;
+extern PLDLLIMPEXP_QT_DATA(int) lines_aa;
+extern PLDLLIMPEXP_QT_DATA(MasterHandler) handler;
+
#endif
------------------------------------------------------------------------------
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