Results 1 to 2 of 2

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

  1. #1
    Join Date
    Feb 2011
    Posts
    8
    Thanked 4 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Removed files from project, Visual Studio still trying to build moc'ed files.

    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?

  2. The following 4 users say thank you to rrabien for this useful post:

    ebirdseystew (18th December 2013)

  3. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Removed files from project, Visual Studio still trying to build moc'ed files.

    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

  4. The following 4 users say thank you to marcvanriet for this useful post:

    ebirdseystew (18th December 2013)

Similar Threads

  1. Replies: 0
    Last Post: 31st January 2011, 12:14
  2. Replies: 2
    Last Post: 5th September 2010, 15:26
  3. Replies: 1
    Last Post: 22nd June 2010, 18:22
  4. Creation of .ts Files in Visual Studio
    By Ragnaron in forum Installation and Deployment
    Replies: 0
    Last Post: 9th March 2010, 10:56
  5. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 22:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.