QWT und QT
Verfasst: 13. Dezember 2007 09:36
Ich soll ein Programm erweitern, dass sowhl QT als auch QWT benutzt.
Ich habe QT (3.3.5) installiert, dann habe ich QWT herunter geladen. Nach der Kompilierung von QWT sollte zwei LIB Dateien erzeugt werden, nähmlich qt-mt335d.lib und qwtd.lib. Ich habe QWT mittels fogende Befehle kompiliert:
--------------------------
qmake qwt.pro
nmake
--------------------------
nmake, weil ich Visual Studio 2003 benutze
Folgende Fehler wurden ausgegeben:
-----------------------------------------------------------
C:\qwt-5.0.2>qmake qwt.pro
C:\qwt-5.0.2>nmake
Microsoft (R) Program Maintenance Utility, Version 7.10.3077
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cd src
nmake -f Makefile
Microsoft (R) Program Maintenance Utility, Version 7.10.3077
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cl -c -nologo -Zm200 -W3 -w34100 -w34189 -MD -O1 -DUNICODE -DWIN32 -DQT
_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG -I"C:\Qt
\3.3.5\include" -I"." -I"moc" -I"C:\Qt\3.3.5\mkspecs\win32-msvc.net" -Foobj\ @C:
\DOKUME~1\Nazih\LOKALE~1\Temp\nm28.tmp
qwt_panner.cpp
qwt_panner.cpp(53) : error C2666: 'QMemArray<type>::operator`[]'': 2 Überladunge
n haben ähnliche Konvertierungen
with
[
type=QwtPicker *
]
C:\Qt\3.3.5\include\qmemarray.h(99): kann 'QwtPicker &QMemArray<type>::o
perator [](int) const ' sein
with
[
type=QwtPicker *
]
oder 'eingebauter C++ Operator[(QwtPicker *const * , uint)'
bei Anpassung der Argumentliste '(QMemArray<type>, uint)'
with
[
type=QwtPicker *
]
NMAKE : fatal error U1077: 'cl': R³ckgabe-Code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio .NET 2003\SDK\
v1.1\Bin\nmake.exe"': R³ckgabe-Code '0x2'
Stop.
C:\qwt-5.0.2>
-----------------------------------------------------------
Könnte jemand mir bei der Fehlerbehebung helfen?
Ich danke Ihnen im Voraus.
Ich habe QT (3.3.5) installiert, dann habe ich QWT herunter geladen. Nach der Kompilierung von QWT sollte zwei LIB Dateien erzeugt werden, nähmlich qt-mt335d.lib und qwtd.lib. Ich habe QWT mittels fogende Befehle kompiliert:
--------------------------
qmake qwt.pro
nmake
--------------------------
nmake, weil ich Visual Studio 2003 benutze
Folgende Fehler wurden ausgegeben:
-----------------------------------------------------------
C:\qwt-5.0.2>qmake qwt.pro
C:\qwt-5.0.2>nmake
Microsoft (R) Program Maintenance Utility, Version 7.10.3077
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cd src
nmake -f Makefile
Microsoft (R) Program Maintenance Utility, Version 7.10.3077
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cl -c -nologo -Zm200 -W3 -w34100 -w34189 -MD -O1 -DUNICODE -DWIN32 -DQT
_DLL -DQWT_DLL -DQWT_MAKEDLL -DQT_DLL -DQT_THREAD_SUPPORT -DQT_NO_DEBUG -I"C:\Qt
\3.3.5\include" -I"." -I"moc" -I"C:\Qt\3.3.5\mkspecs\win32-msvc.net" -Foobj\ @C:
\DOKUME~1\Nazih\LOKALE~1\Temp\nm28.tmp
qwt_panner.cpp
qwt_panner.cpp(53) : error C2666: 'QMemArray<type>::operator`[]'': 2 Überladunge
n haben ähnliche Konvertierungen
with
[
type=QwtPicker *
]
C:\Qt\3.3.5\include\qmemarray.h(99): kann 'QwtPicker &QMemArray<type>::o
perator [](int) const ' sein
with
[
type=QwtPicker *
]
oder 'eingebauter C++ Operator[(QwtPicker *const * , uint)'
bei Anpassung der Argumentliste '(QMemArray<type>, uint)'
with
[
type=QwtPicker *
]
NMAKE : fatal error U1077: 'cl': R³ckgabe-Code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio .NET 2003\SDK\
v1.1\Bin\nmake.exe"': R³ckgabe-Code '0x2'
Stop.
C:\qwt-5.0.2>
-----------------------------------------------------------
Könnte jemand mir bei der Fehlerbehebung helfen?
Ich danke Ihnen im Voraus.