Randy McMurchy wrote: > Hi all, > > Noted in the log from the ./configure command at the beginning of > my recent QT build is this: > > This target is using the GNU C++ compiler (linux-g++). > > Recent versions of this compiler automatically include code for > exceptions, which increase both the size of the Qt libraries and > the amount of memory taken by your applications. > > You may choose to re-run configure with the -no-exceptions > option to compile Qt without exceptions. This is completely binary > compatible, and existing applications will continue to work. > > I know my build script used to include the -no-exceptions flag to the > configure command, but it has been removed from the book. I am not really > sure what exactly it does, but it seems the passage above would indicate > that -no-exceptions would be preferred.
I found this comment: Exception handling is not reasonably well supported on all compilers Qt supports, blows up the size of your library and your application, is difficult to handle together with e.g. signals and slots, etc. And a library *should* be robust enough to either keep stable even for invalid input, or to report invalid states to the applications using the library objects. I'm not saying that Qt is 100% perfect here, but exceptions fix no problem that cannot be solved otherwise without forcing everybody to deal with them. ------ They have different options for each environment. See $(QTDIR)/mkspecs. I don't understand why they don't make -no-exceptions the default for Gnu g++ instead of making such a comment. I have scripts for several versions of Qt. They have -no-exceptions specified for the older Qt3 versions, but not for Qt4. Also the comment above says the libraries are bigger with exceptions, but it doesn't say they are slower. On my system, the stripped size of all Qt libraries is 68M, which doesn't sound outrageous to me. The xorg libs are 137M. What really makes Qt libraries huge are debug symbols, but we do build in -release mode. I have no objection to using -no-exceptions, but I'd like to someone to test it with KDE first. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page