np43 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Cannot build qespta sample #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I installed, configured, and built Qt 4.6.3 on my computer (Windows 7 x64, 
Visual Studio 2008). I then set the VC include, lib, and source directories and 
I can build Qt applications fine.

The QextSerialPort 1.1 distribution is marked as being compatible with Qt 4.

I tried building the qespta example, but none of the Qt #includes resolve, I 
had to manually add the subdirectory references:

    #include <QMessageBox> becomes #include <QtGui/QMessageBox>

After sorting that out, VC complained of syntax errors:

MessageWindow, line 93:
    msgTextEdit.append( dynamic_cast< MessageEvent::MessageEvent* event)->msg );

I commented out the lines VC was complaining about and tried to rebuild, but 
now I get 350+ linker errors, here's the first one:

    Error   3   error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QApplication::~QApplication(void)" (__imp_??1QApplication@@UAE@XZ) referenced in function _main main.obj    qespta

I'm not particularly strong in C++ or Qt, I'm using this as a learning 
exercise, but I'm already out of my depth, but so far I get the impression the 
qespta sample isn't compatible with Qt 4.6.3.

Original issue reported on code.google.com by w3...@w3bbo.com on 25 Jul 2010 at 4:21

GoogleCodeExporter commented 9 years ago

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:36