PDA

View Full Version : Compile of big generated file in release stuck



Equilibrium
31st December 2007, 11:39
Hi All,

I have a project with some UI files,
One of them is complicated and contains a lot of components.
the generated cpp file is very big (125kb).
compiling in release is stuck on this file .

All the cpp files are optimized for max speed (/O2)
When i changed this specific file's optimization to "Disable" the compile process finshed.

1. Why the compile process stuck on this file?
2. Will this change of this file may cause me some problems?

Thanks

marcel
31st December 2007, 11:45
1. Why the compile process stuck on this file?

How much did you wait for it to complete?



2. Will this change of this file may cause me some problems?

The UI code generated by uic is linear. It does not contain any complex algorithms or other processor stressing code.
Disabling optimizations shouldn't be a problem.

Equilibrium
31st December 2007, 12:15
1. waited more than 45 minutes.
2. So if i have for example 4 cpp files which are compiled for max speed (/O2) and one file which is disabled for optimization in the same vcproj file under release - This is no proble?

marcel
31st December 2007, 12:18
1. waited more than 45 minutes.

Must be a compiler bug.



2. So if i have for example 4 cpp files which are compiled for max speed (/O2) and one file which is disabled for optimization in the same vcproj file under release - This is no proble?

Won't be any problem if the code that is not optimized is the one generated by uic.

Equilibrium
31st December 2007, 12:25
It happend on VS v7.1.630 + QT 3.3.5.
Deleting large amount of controls helped reducing the compile time