Solved

Can I use the STL (Standard Template Library) With CE

Posted on 2001-08-05
14
411 Views
Last Modified: 2013-12-27
I was trying to use a list but
#include <list>
gives me the error that the include file is not found?

How can I use STL on CE.

Thanks.
0
Comment
Question by:thedogeater
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +4
14 Comments
 

Accepted Solution

by:
mathought earned 50 total points
ID: 6354160
I tried it too. Scanning the header files of the MS CE Platform Builder / eMbedded Visual C++, none of the STL files are there.

You can always copy the ones from the standard Visual C++ 6 libraries. It should work, though I have not tried it myself.

Maybe Microsoft preferes you used their MFC...?
0
 

Author Comment

by:thedogeater
ID: 6358596
hmm Thanks.

I have never used Visual C++ so do not even know how to
even start to try to use the Visual C++ 6 libraries, are
thay just named differently?
Can you give me a good URL or clue :+)

Thanks.
0
 

Expert Comment

by:mathought
ID: 6359589
To the best of my knowledge you have three option:
1) Find and use someone elses class that implements a list.
2) Use MFC.
3) Try using the <list> from Visual C++ 6. If you installs Visutal C++6 in C:\Program Files\Microsoft Visual Studio then you should find the STL files in: C:\Program Files\Microsoft Visual Studio\VC98\Include and copy the files you need. But I am not sure it will work...
0
[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

 

Author Comment

by:thedogeater
ID: 6359607
Thanks
I was looking at CList and it look ok I supose
I will have to see.
I dont know why thay cant just use STL like I want:+)
0
 

Expert Comment

by:mathought
ID: 6359648
I have an idea why...
Let's say I was you and indeed I chose to work with CList and other MFC. now let's further assume that sometime later I want to switch to a different OS (non-Microsoft)other than CE. Oops, now that my code has MFC it isn't so portable, so I'll have to stay with Microsoft CE...
0
 

Author Comment

by:thedogeater
ID: 6359670
yep there stinkers!
I tell you something else
I have been haveing problems
with. Are there any places I
can find CE code? little examples
and the like beyod the ones thay
ship with the IDE?
0
 
LVL 2

Expert Comment

by:ssr
ID: 6371083
STL isn't supported on CE yet.  Rumor is it will be for eMbedded Visual C++ 4.0, but we'll see.  MFC does a much better job, and the runtime is in the ROM of all Windows CE devices, so it saves space.

SSR
0
 
LVL 7

Expert Comment

by:jimwasson
ID: 6402165
You can get STL for CE at the Dinkumware site:

http://www.dinkumware.com/libdace.html
0
 
LVL 2

Expert Comment

by:ssr
ID: 6518007
STL will be supported on Windows CE 4.0 (codename Talisker), but it is not supported by MS now.

SSR
0
 

Expert Comment

by:gprieck
ID: 6540134
Silicon Graphics and HP have ported STL for CE.  I have used this version in several projects with eMbedded Visual C++ 3.0.  

http://users.iol.it/g.govi/stlport_ce_en.html
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6780617
This question has been locked for months with a proposed answer, awaiting your acceptance of it to grade and close it.  Did it help you or is more needed here?

If the Proposed Answer did not solve you problem, please reject it and comment as to your status today.  If another's input served your need, then accept that comment as the answer to grade and close this item.

Moondancer
Community Support Moderator @ Experts Exchange
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6843071
SECOND REQUEST, ADMINISTRATION HAS BEEN ADVISED.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, in the event new items have been created since this listing was pulled.

http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.11965038.html
http://www.experts-exchange.com/questions/Q.20152715.html
http://www.experts-exchange.com/questions/Q.20154877.html
http://www.experts-exchange.com/questions/Q.20164526.html
http://www.experts-exchange.com/questions/Q.20164411.html
http://www.experts-exchange.com/questions/Q.20165525.html
http://www.experts-exchange.com/questions/Q.20197388.html
http://www.experts-exchange.com/questions/Q.20245030.html
http://www.experts-exchange.com/questions/Q.20244734.html
http://www.experts-exchange.com/questions/Q.20177058.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.11848579.html
http://www.experts-exchange.com/questions/Q.20116305.html
http://www.experts-exchange.com/questions/Q.20116306.html
http://www.experts-exchange.com/questions/Q.20162220.html
http://www.experts-exchange.com/questions/Q.20163513.html
http://www.experts-exchange.com/questions/Q.20152719.html

PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding this question here on closing recommendations if this item remains inactive another three days.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange


P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.
0
 

Expert Comment

by:serbersan
ID: 8630658
Hello¡


I'm using Embedded Visual C++, and I'm using the SGI version of STL.

I've followed the instructions to install it, I decompressed in c:\program files\stl the zip I've downloaded from the homepage and I've included the path in the compiler options. I've included the .h in the header file:
#include <vector>
#include <iterator>
...
...
vector<int> tarea;
vector<int>::iterator elemento;

The problem is that when I rebuild the project in the line I declare the iterator:

vector<int>::iterator elemento;

I have the following error:

:\Fuentes\agenda\AgendaTareas.h(38) : error C2653: 'vector<int,class std::__default_alloc_template<1,0> >' : is not a class or namespace name
C:\Fuentes\agenda\AgendaTareas.h(38) : error C2146: syntax error : missing ';' before identifier 'elemento'
C:\Fuentes\agenda\AgendaTareas.h(38) : error C2501: 'iterator' : missing storage-class or type specifiers
C:\Fuentes\agenda\AgendaTareas.h(38) : error C2501: 'elemento' : missing storage-class or type specifiers


Could you help me please.

Thanks in advance¡¡

Sergio
0
 

Expert Comment

by:mathought
ID: 8658907
try
std::vector<int>::iterator elemento;

instead of

vector<int>::iterator elemento;
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question