Hello,
I'm trying to understand how to use the Qt 4 model/view architecture. I've gone through the examples in the book. Now I'm looking at the Qt installation examples.
I've encountered a link error while trying to build the following example:
...\examples\itemviews\chart
It's due to an unresolved link to (in main.cpp:30):
Q_INIT_RESOURCE(chart);
Specifically, the error is:
1>main.obj : error LNK2019: unresolved external symbol "int __cdecl qInitResources_chart(void)" (?qInitResources_chart@@YAHXZ) referenced in function _main
1>C:\cainbr\qt\mvc\chart\Debug\chart.exe : fatal error LNK1120: 1 unresolved externals
Note I did generate the resource object code and added it to the project:
rcc chart.qrc -o qrc_chart.cpp
Note that I'm using:
VC++ 2005, v2.0.50727
Qt 4.1.4 open-source edition
Qt 4.1.4 patch for VC++ 2005 from SourceForge
Thanks,
Ben
Bookmarks