Closed Bug 185621 Opened 23 years ago Closed 23 years ago

qt port should define QT_NO_STL

Categories

(SeaMonkey :: Build Config, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: Biesinger, Assigned: Biesinger)

References

Details

Attachments

(1 file)

There have been several reports of compile problems when QT_NO_STL is not defined. (see e.g. news://news.mozilla.org/netscape.public.mozilla.qt thread "Compile Error") therefore, I'm attaching a patch to always define it (when qt is enabled).
Attachment #109407 - Flags: review?(seawood)
*** Bug 185619 has been marked as a duplicate of this bug. ***
*** Bug 185620 has been marked as a duplicate of this bug. ***
Maybe we should make this define gcc-only since Sun Workshop works fine with STL in Qt enabled...
my gcc does too, but disabling it does not cause any harm, esp. given that mozilla does not use stl either.
Attachment #109407 - Flags: review?(seawood) → review+
Checking in configure.in; /cvsroot/mozilla/configure.in,v <-- configure.in new revision: 1.1139; previous revision: 1.1138 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Just encountered this problem as well. As I understand it, the root of the problem is that the "#include <string>" in qstring.h matches the name of a directory [/export/home/dl/Qt-gcc/include/qstring.h:46: directory `../../../dist/include/string' specified in #include] IMO the correct fix would be to make sure that the header file is included not the directory. One way might be to change the order of the include paths. Another would be to change the name of the string directory so that it no longer matches that of the name of one of the standard library headers. (Put another way - would anyone put up with a directory called "iostream.h" ???) Again as I understand it, setting QT_NO_STL will force all Qt users to (re)compile a non-STL version of the Qt libraries. See http://lists.trolltech.com/qt-interest/2003-02/thread00069-0.html
>IMO the correct fix would be to make sure that the header file is included not >the directory. and how would you do that, without modifying system qt headers? note that defining QT_NO_STL works just fine for me as well as others, I have not heard a complaint of something not working.
vrfy fixed: 1.1139 cbiesinger%web.de Dec 16 2002 note that the thread on the list is misleading. What it means is that a STL based Qt app can't link against Qt w/o STL. It doesn't say or mean to say that a Non STL based Qt app (mozilla) can't link against Qt w/ STL. the issue w/ <string> should be treated as a compiler bug. Even if it is mozilla related, it does not in any way relate to this bug report.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: