Christian,
in order to compile and link LyX 1.4 on Windows using MSVS.Net 2003, I found
that I had to modify the generated src/tools/qconfig.cpp file so that the
various functions had Q_EXPORT prefixes. I attach the resulting file in the
hope that the equivalent change to the stuff that generates this file is now
trivial.
This was compiling the QT_WIN32_3_3_BRANCH of the Qt/WinFree sources of a
couple of days ago.
Regards,
Angus
/* Install paths from configure */
#include <qglobal.h>
static const char QT_INSTALL_PREFIX [267] = "qt_nstpath=/home/Angus/Qt/3x-msvs";
static const char QT_INSTALL_BINS [267] = "qt_binpath=/home/Angus/Qt/3x-msvs/bin";
static const char QT_INSTALL_DOCS [267] = "qt_docpath=/home/Angus/Qt/3x-msvs/doc";
static const char QT_INSTALL_HEADERS [267] = "qt_hdrpath=/home/Angus/Qt/3x-msvs/include";
static const char QT_INSTALL_LIBS [267] = "qt_libpath=/home/Angus/Qt/3x-msvs/lib";
static const char QT_INSTALL_PLUGINS [267] = "qt_plgpath=/home/Angus/Qt/3x-msvs/plugins";
static const char QT_INSTALL_DATA [267] = "qt_datpath=/home/Angus/Qt/3x-msvs";
static const char QT_INSTALL_TRANSLATIONS[267] = "qt_trnpath=/home/Angus/Qt/3x-msvs/translations";
static const char QT_INSTALL_SYSCONF [267] = "qt_cnfpath=/home/Angus/Qt/3x-msvs/etc/settings";
/* strlen( "qt_xxxpath=" ) == 11 */
Q_EXPORT const char *qInstallPath() { return QT_INSTALL_PREFIX + 11; }
Q_EXPORT const char *qInstallPathDocs() { return QT_INSTALL_DOCS + 11; }
Q_EXPORT const char *qInstallPathHeaders() { return QT_INSTALL_HEADERS + 11; }
Q_EXPORT const char *qInstallPathLibs() { return QT_INSTALL_LIBS + 11; }
Q_EXPORT const char *qInstallPathBins() { return QT_INSTALL_BINS + 11; }
Q_EXPORT const char *qInstallPathPlugins() { return QT_INSTALL_PLUGINS + 11; }
Q_EXPORT const char *qInstallPathData() { return QT_INSTALL_DATA + 11; }
Q_EXPORT const char *qInstallPathTranslations() { return QT_INSTALL_TRANSLATIONS + 11; }
Q_EXPORT const char *qInstallPathSysconf() { return QT_INSTALL_SYSCONF + 11; }