 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Tue Feb 20, 2007 6:25 pm Post subject: stl and new free Borland Turbo C++ |
|
|
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
|
Posted: Tue Feb 20, 2007 6:58 pm Post subject: Re: stl and new free Borland Turbo C++ |
|
|
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 |
|
 |
|
|
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
|
|