PDA

View Full Version : Removed files from project, Visual Studio still trying to build moc'ed files.



rrabien
15th August 2011, 15:05
I'm using Visual Studio 2008 with the Qt Visual Studio Add-In. I deleted some files from my project and now when I try and compile I get errors like:

1>c1xx : fatal error C1083: Cannot open source file: '.\GeneratedFiles\Debug\moc_connectiondisplay.cpp' : No such file or directory

How can I update my project so it knows what moc'ed files to look for?

marcvanriet
15th August 2011, 23:26
I think you have to run qmake again.

I'm not sure since I use QtCreator (with MSVC, not MingW). If you're new to Qt, I would suggest using QtCreator first. It does all this moc'ing and stuff automatically, so you can focus on using Qt instead of spending hours on getting your program to build correctly.

Regards,
Marc