Qt 4.6.3 doesn't build with STL which I need for my project. Reproducible: Always
I assume we can add a use flag for it. Objections? Patches are always welcome
WTF? We already pass -stl to the configure script...
Well when I try use QString::fromStdString() etc like STL features in C++ it says they are not defined.
I can't reproduce. Try re-emerging qt-core please.
I just recompiled qt-core and can reproduce it again. I don't understand what is going on. /home/comawhite/projects/TagCorrecting/main.cxx:50:13: error: ‘fromStdString’ is not a member of ‘QString’
Attach /usr/share/qt4/mkspecs/gentoo/qconfig.pri please.
Created attachment 243845 [details] Qt's configuration file
(In reply to comment #8) > Created an attachment (id=243845) [details] > Qt's configuration file > This shows that stl support is enabled. So either you're doing something wrong or it's a gcc-4.5 issue.
It might be a GCC-4.5.x bug, because I don't understand how I'm doing anything wrong. I've done it like it says to use that method in the documentation.
I don't use gcc-4.5 myself, so I'm unable to debug this issue further. You can help by attaching a full build.log of x11-libs/qt-core.
FWIW, I have world compiled with GCC 4.5.1 and my Qt 4.6.3 installation has proper STL support. My qconfig.pri differs from Keith's only in that I have a release build, not debug, and I have x86, not x86_64.
Keith, attach your build.log for qt-core please.
Created attachment 245810 [details] Qt-4.7.0rc1 build log
I experienced it also in Qt-4.7.0-rc1, I posted the build log
build.log attached, reopening
I fixed the issue. It seems that it was disabled in my KDE4 project using CMake. I had to use remove_definitions(-DQT_NO_STL) for it to work when building my CMake project with KDE4.