Hi there
I just try to get the uartassistant example up and running as a msvc2010 project.
The following error message pops up no matter whether using the qextserialport lib or including the files.
> moc_qextserialport.cpp
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2027: Verwendung des undefinierten Typs "QextSerialPortPrivate"
1> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../../../src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2227: Links von "->_q_onWinEvent" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2061: Syntaxfehler: Bezeichner 'HANDLE'
1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027: Verwendung des undefinierten Typs "QextSerialPortPrivate"
1> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../../../src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'
1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2227: Links von "->_q_canRead" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
1>
· I generated a new QT Project by using the QT VS Plug in (qt-vs-addin-1.2.1-opensource)
· I named the Project Dialog, chose QDialog as basis class the path was set to .\example\uartassistant
· now I was asked whether I want to keep the Dialog.cpp, Dialog.ui and main.cpp files. I kept this files.
· I added the C:\qextserialport-1.2rc\src to the project as additiona include pathes.
· I added qserialport.h the project as a link.
· Qt5ExtSerialPort.prl· Qt5ExtSerialPort1.dll· Qt5ExtSerialPort1.lib· Qt5ExtSerialPortd.prl· Qt5ExtSerialPortd1.dll· Qt5ExtSerialPortd1.lib· Qt5ExtSerialPortd1.pdb
the are located in the C:\qt-everywhere-opensource-src-5.0.2\qtbase\lib path
Can anyone help me getting this example up and running under MVSC2010?
many thanks in advance
best regards
Hi Lisandro,
> > moc_qextserialport.cpp
>
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2027:
> 1>Verwendung
> des undefinierten Typs "QextSerialPortPrivate"
>
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157) : error C2027: use of undefined type 'QextSerialPortPrivate'
> 1>
> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..
> /../src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'
>
> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..
/../src/qextserialport.h(167): : see declaration of 'QextSerialPortPrivate'
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2227: Links
> 1>von
> "->_q_onWinEvent" muss sich ein Zeiger auf
> Klassen-/Struktur-/Union-/generischen Typ befinden.
>
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2227: left of '->_q_onWinEvent' must point to class/struct/union/generic type
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(157): error C2061:
> Syntaxfehler: Bezeichner 'HANDLE'
>
1>GeneratedFiles\Debug\moc_qextserialport.cpp(157):: error C2061:
syntax error : identifier 'HANDLE'
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027:
> 1>Verwendung
> des undefinierten Typs "QextSerialPortPrivate"
>
1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2027:
use of undefined type 'QextSerialPortPrivate'
> 1>
> c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..
> /../src/qextserialport.h(167): Siehe Deklaration von 'QextSerialPortPrivate'
>
c:\qextserialport-1.2rc\examples\uartassistant\generatedfiles\debug\../../..
> /../src/qextserialport.h(167):
: see declaration of 'QextSerialPortPrivate'
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2227: Links
> 1>von
> "->_q_canRead" muss sich ein Zeiger auf
> Klassen-/Struktur-/Union-/generischen Typ befinden.
> 1>GeneratedFiles\Debug\moc_qextserialport.cpp(158): error C2227: left of
'->_q_canRead' must point to class/struct/union/generic type