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?
Re: Build problem with more then 4 classes
no.
show us your .pro file. most likely the error will be there.
Re: Build problem with more then 4 classes
After adding new cpp/h files run "qmake -project", then "qmake" and then "make" again.
Re: Build problem with more then 4 classes
Quote:
Originally Posted by
lyuts
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.