Re: VC++ 2008 compile error
technically, that is not an error in the compilation stage, but rather in the linking stage.
Do you know where this 'qtmain.lib' exists?
VS has a problem opening or locating the said library.
Did you perhaps forget to tell VS where it can find this library?
There might be a good reason why you are using VS, but if you are just starting with C++ and Qt, you might be better off using Qt Creator. That way it is easier to try out Qt examples.
Something like this might be a good read:
http://www.cs.duke.edu/~ola/book/compiling.html
Once you master that, I would recommend diving into Qt's excellent online documentation:
http://doc.qt.nokia.com/4.6/how-to-learn-qt.html
There is a reference to an online book on the above page if you prefer more guided approach.
good luck
Re: VC++ 2008 compile error
Quote:
Do you know where this 'qtmain.lib' exists?
no, i have searched the Qt install directory but i can't find it. All i found are the .a's files under the lib folder.
Quote:
There might be a good reason why you are using VS,
yes, you're right. i'm currently trying to convert a program to qt, it is created using visual c++.
Quote:
but if you are just starting with C++ and Qt, you might be better off using Qt Creator. That way it is easier to try out Qt examples.
actually, i'm no longer a qt beginner, i've already created programs using Qt Creator and QDevelop. Now, i'm trying to use and learn Visual C++ with Qt.
Re: VC++ 2008 compile error
Did you recompile Qt to support Visual Studio? Otherwise no .lib files exist, only .a files. Once you rebuild Qt using Visual studios compiler, there will be .lib files.
Re: VC++ 2008 compile error
Quote:
Did you recompile Qt to support Visual Studio?
not yet, how can i recompile it to support VS?
Re: VC++ 2008 compile error
You need to run 'configure' from a dos prompt.
Eg.
configure -platform win32-msvc2008
and then build the libraries using nmake
This can easily take 4 hours or more, so be patient.
Re: VC++ 2008 compile error
thnks, so i have to configure Qt first...
Re: VC++ 2008 compile error
"and Qt4 Visual Studio Add In 1.1.1" <-- this should avoid QT compilation, doesn't it?
Re: VC++ 2008 compile error