CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2013
    Posts
    44

    Something weird in Qt Creator 3.1.2 based on Qt 5.3.1

    Hi,

    I have written a big project in qt Creator.
    Sometimes I get this weird thing :

    Qt Creator misses compiling a cpp file and obviously generates linkage errors such as LNK 2001 or LNK 2019.
    I know that it doesn't compile this cpp file because if I add an error in this file, Qt Creator doesn't see it.
    I checked in the pro file, the cpp file is in the SOURCES files list.
    Sometimes it's OK again and I don't understand why.
    I tried run qmake, clean, rebuild ...

    Any idea please ?

  2. #2
    Join Date
    Jul 2013
    Posts
    576

    Re: Something weird in Qt Creator 3.1.2 based on Qt 5.3.1

    You could copy and rename the cpp file outside of the IDE, then completely remove/delete the old cpp file from within the IDE, and then finally introduce the copied renamed file into the IDE. This procedure usually straightens out IDE inconsistencies.

    Also check for recursive dependencies among the #include files in the cpp file. It can really mess things up.

    Have you tried the Qt forums?
    Last edited by razzle; July 20th, 2014 at 04:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured