BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stl and new free Borland Turbo C++

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Feb 20, 2007 6:25 pm    Post subject: stl and new free Borland Turbo C++ Reply with quote



Dear all,

I started to use the new free Borland Turbo C++ Builder but I fear I
have some understanding problems with stl so far.

If I want to use stl.h I always get an error message:
stl.h(37): E2293 ) expected

If I double click on that error message the source window shows me the
stl.h file and puts the cursor in line 37 behind the "ex":
explicit Deque(size_type _Count)

I reduced the whole example as far as possible, so what I have at the
moment is an empty project with a button on it and the Unit1.cpp shows
as following:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include <stl.h>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------

Can anybody tell me what I am doing wrong? What I want to do is just
using an object of the vector class out of the stl.

Thanks a lot,
ChL
Back to top
Guest






PostPosted: Tue Feb 20, 2007 6:58 pm    Post subject: Re: stl and new free Borland Turbo C++ Reply with quote



ok, I am a step further.

At the moment I include vector.h and now it works. But as far as I
realised is it possible to include stdlib.h as well but if I do so the
class vector is not found.

So the "new" question is how can I include all the stdlib stuff with
one include line?

Thx,
ChL
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.