After integrating Qt with Vs and trying to compile .pro file I\'m getting following errors:
Error 9 error LNK2001: unresolved external symbol \"public
I faced the same linker error today, but it was due to a small slip:
I added cpp/ui files to my project manually, but forgot to add the header file explicitly as header file. Now when compiling I got a similar error message as above and the moc_*.cpp file(s) were not generated in the debug (or release) directory of the build. That was not such an obvious mistake, qmake did not complain and other than the linker message I got no errors.
So if anyone encounters the same problem again (or makes the same copy & pase mistake): make sure the header files have also been added to your project file