I'm new to C++ and QT. I downloaded and installed qt-win-eval-4.5.0-vs2008.exe. Then I downloaded the Visual Studio 2008 plug-in (qt-vs-addin-1.0.0-rc1.exe).
I did hello world and it worked (once I googled a bit and realized that the HW example was from QT 3). Then I did the example in chapter 2 and it worked. And I got greedy.
I loaded Media Player (C:\Qt\4.5.0\demos\mediaplayer) into Visual Studio 2008. I seem to have all the files. When I compile, I get
Error 1 error LNK2019: unresolved external symbol _main referenced in function _WinMain@16 qtmaind.lib MediaPlayer
So I went to the linker and told it to ignore all default librarys (not sure that was the right thing, /NODEFAULTLIB), and recompiled, and it actually looks better even though the number of errors has gone up:
Error 1 error LNK2019: unresolved external symbol ___security_cookie referenced in function "public: __thiscall MediaPlayer::MediaPlayer(class QWidget *,class QFlags<enum Qt::WindowType>)" (??0MediaPlayer@@QAE@PAVQWidget@@V?$QFlags@W4WindowType@Qt@@@@@Z) mediaplayer.obj MediaPlayer
My question is: Was I supposed to compile QT (I did download the open source -- qt-sdk-win-opensource-2009.01.1.exe) under Visual Studio 2008? Or did the plugin installation take care of that?