Results 1 to 4 of 4

Thread: Build problem with more then 4 classes

  1. #1
    Join Date
    Mar 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Exclamation Build problem with more then 4 classes

    I'm trying to compile a project that has 4 classes (4x .cpp and 4x .h files) but when I add one more class to my project, the whole thing won't compile! I've double checked the names, tried other names, etc. But nothing works.

    The compiler exits and tells me he can't find the following files:
    > object_script.main
    > main.Debug

    I'm using Qt Creator 1.0 and Qt 4.5 on a Windows XP machine

    Is there some kind of max classes restriction?

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Build problem with more then 4 classes

    no.

    show us your .pro file. most likely the error will be there.

  3. #3
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Build problem with more then 4 classes

    After adding new cpp/h files run "qmake -project", then "qmake" and then "make" again.
    I'm a rebel in the S.D.G.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Build problem with more then 4 classes

    Quote Originally Posted by lyuts View Post
    After adding new cpp/h files run "qmake -project", then "qmake" and then "make" again.
    If he's adding the files through Creator then there is no need to do that. And please don't advise people to run qmake -project while in the middle of the development process. This command should (if at all) be ran only once at the very beginning of development, just before the first compilation and never again later.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qt + Linux + Eclipse - debug using debug build?
    By will49 in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2012, 06:27
  2. Qt Creator 0.9.1 - progrma build error
    By fb2007 in forum Installation and Deployment
    Replies: 5
    Last Post: 18th October 2009, 16:02
  3. Problem with QMake/UIC
    By hardgeus in forum Qt Programming
    Replies: 11
    Last Post: 31st March 2008, 18:51
  4. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Tags for this Thread

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.