ich folgendes Problem: Unter Linux läßt sich der Code übersetzen.
Unter Windows bekomme ich die Fehlermeldung, das der Operator mehrdeutig ist. Nur fällt mir dafür keine Lösung ein. Könnte mir jemand von euch helfen? Schon mal vielen Dank im Vorraus.
Ich habe die beiden Dateien mal angehangen.
Fehlermeldung:
ParametersRecord.cpp
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(44) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, quint16)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(48) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, quint16)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(49) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, int)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(50) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, int)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(51) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, int)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(58) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, quint16)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(62) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, quint16)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(66) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, quint16)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(67) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, int)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(68) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, int)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(69) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, int)'
C:\c++\fastcgi\lib\plugins\FastCgiInterface\ParametersRecord.cpp(76) : error C25
93: 'operator [' is ambiguous
c:\c++\qt\4.7.0\include\qtcore\../../src/corelib/tools/qbytearray.h(172)
: could be 'const char QByteArray::operator [](int) const'
c:\c++\fastcgi\lib\plugins\fastcgiinterface\UnsignedByteArray.h(29): or
'quint8 FastCgiQt::UnsignedByteArray::operator [](int) const'
while trying to match the argument list '(const FastCgiQt::UnsignedByteA
rray, quint16)'
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~2.0\VC\bin\amd64\cl.exe' : return
code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\Bin\amd64\nmake.exe"' : return code '0x2'
Stop.