LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-16-2019, 02:26 PM   #16
dedec0
Member
 
Registered: May 2007
Posts: 973

Original Poster
Rep: Reputation: 32
Question What about STL?


What about STL? Is the STL the configure talks about the C++ Standard Template Library?

So, compiling Qt3 with STL disabled apparently solved my problem. C++ is a language I programmed very little, and just a few times.

Disabling it means that i will not be able to use STL in Qt3 projects?

After searching a bit now, i found a possibly useful page about STL:

Quote:
Originally Posted by https://www.geeksforgeeks.org/the-c-standard-template-library-stl/
"The Standard Template Library (STL) is a set of C++ template classes to provide common programming data structures and functions such as lists, stacks, arrays, etc. It is a library of container classes, algorithms, and iterators. [...]"
 
Old 09-16-2019, 02:51 PM   #17
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,588

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Code:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type
the very first error
got me to QT_NO_STL

which got to the bit in configure,
I should have included the bits which got me to look for stl.test

but I am a little confused, it compiled when you disabled stl?
 
1 members found this post helpful.
Old 09-16-2019, 04:49 PM   #18
dedec0
Member
 
Registered: May 2007
Posts: 973

Original Poster
Rep: Reputation: 32
Question

Quote:
Originally Posted by Firerat View Post
Code:
../include/qvaluelist.h:88:13: error: ‘ptrdiff_t’ does not name a type
     typedef ptrdiff_t  difference_type
the very first error
got me to QT_NO_STL

which got to the bit in configure,
I should have included the bits which got me to look for stl.test

but I am a little confused, it compiled when you disabled stl?
That error would never lead me to STL. I would not think about examining a source file in such kind of project, for an installation problem.

Yes, it compiled. The exact command i used is:

./configure -no-stl

I can even repeat everything, possibly removing the environment changes i did following INSTALL file. Should it fail?

What is the conclusion here? Should i keep STL disabled (possibly after confirming it is *the* problem for me)? Or should i try to compile Qt with it on, as it was by default?

Last edited by dedec0; 09-16-2019 at 05:18 PM.
 
Old 09-16-2019, 05:43 PM   #19
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,588

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
I don't think it will matter in the end

I'm not a coder ,

I can read a bit of most programming languages, I get the general idea if what it is doing. Enough to make small changes, or fix obvious bugs.

If I understand this correctly, the no_stl vs stl achieves the same end result in a different way. one may be "better" as in smaller/faster

without STL, difference_type is a ptrdiff_t ( pointer .. diff type? )
pointers are addresses of memory ( they point to something in memory )

with stl, difference_type is an integer , and stl does magic

see, I'm not a coder.. I don't really understand it.. but I do , kindof .. maybe .. idk

In the past I would have understood it better, but as I don't use it much I forget all but fragments.. which I can use to build back up if I study the code and reference materials again.


What I don't understand is the error was pointing to ptrdiff_t being a problem.
I assumed that your compiler had some quirk that was incompatible
or missing/incompatible headers.

I really didn't expect explicitly setting no-stl would resolve it
I guess that also triggered some other configuration .. what I don't know.


but anyway, I don't think it will actually make any real difference
but that is just a 'self educated guess' not a fact.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Linux version prompt before login wrong version mick1945 Slackware 14 06-18-2017 05:29 PM
Wrong disk free space (VERY wrong) macrojd Linux - Server 12 05-17-2009 03:14 AM
cat /proc/version - displays wrong version babu198649 Linux - Newbie 2 11-10-2008 05:10 AM
What is wrong with reiserfs? wrong free space mesh2005 Linux - General 1 05-03-2007 08:21 AM
slackware startx starts the wrong version, i didn't even know i had another version edman007 Linux - Software 3 05-16-2004 08:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration