Note that there are some explanatory texts on larger screens.

plurals
  1. POQt 5.1.0 for Windows 32-bit (VS 2010, 505 MB) doesn't work
    primarykey
    data
    text
    <p>I have downloaded four Qt 5.1.0 packages:</p> <p>Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)</p> <p>Qt 5.1.0 for Windows 32-bit (VS 2010, 505 MB)</p> <p>Qt 5.1.0 for Windows 64-bit (VS 2012, 525 MB)</p> <p>Qt 5.1.0 for Windows 64-bit (VS 2012, OpenGL, 522 MB)</p> <p>After installed all these four packages, I created a very simple QT project by using <strong>Qt 5.1.0 for Windows 32-bit (VS 2010, 505 MB)</strong></p> <p>The project is a Qt gui application with a ui form. I created it just follow the Qt Creator's template without typing any word. After that I built this project and run, everything is OK.</p> <p>Then I added a new C++ class to the project. The added C++ class's base class is QWidget. This time, I still did not type any word in the .cpp and .h file. So the added class only was created by Qt Creator. After that I built this project again, and run, everything is still OK.</p> <p>Now I began to add my code. I added one line in the mainwindow.h:</p> <pre><code>#include "myclass.h" </code></pre> <p>Then I added another line in the mainwindow.cpp:</p> <pre><code>pMyClass = new CMyClass(this); </code></pre> <p>After that I built this project again, this time two errors happened.</p> <pre><code>error LNK2001: unresolved external symbol public: __thiscall CMyClass::CMyClass(class QWidget *)" (??0CMyClass@@QAE@PAVQWidget@@@Z) error LNK1120: 1 unresolved externals </code></pre> <p>I built the same project by using another three Qt versions:</p> <p>Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)</p> <p>Qt 5.1.0 for Windows 64-bit (VS 2012, 525 MB)</p> <p>Qt 5.1.0 for Windows 64-bit (VS 2012, OpenGL, 522 MB)</p> <p>Build and run were all successful. Everything is OK. </p> <p>Because my project can be built and run successfully by using</p> <p>Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB)</p> <p>Qt 5.1.0 for Windows 64-bit (VS 2012, 525 MB)</p> <p>Qt 5.1.0 for Windows 64-bit (VS 2012, OpenGL, 522 MB)</p> <p>I am pretty sure there is nothing wrong in my project. </p> <p>Only using <strong>Qt 5.1.0 for Windows 32-bit (VS 2010, 505 MB)</strong> errors happen.</p> <p>I was confused by the results. I checked the build directories and I found <strong>VS 2010 did not compile mycalss.cpp!</strong> All other three build directories have the .obj files or .o files of myclass. So when link, errors happened.</p> <p>My System is Windows7 64bit Ultimate. Does anyone know how to solve this problem?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload