Solved

Path to  STL Map header file

Posted on 2016-10-31
1
58 Views
Last Modified: 2016-10-31
I am using Embarcadero C++ Builder Berlin 10.1 enterprise Update 1 and wish to use an  STL Map template in the project.

I get the following errors using the code below (just including the header file). The same error is also given if I include <map.hpp>.
What header file should I use and what include  path should I be using ( and what library path) ?

I haven't encountered this error in previous versions of Embarcadero C++ builder (EX2 Enterprise and XE8 enterprise). I don't know if this error occurred before I applied Update 1.

[bcc32 Warning] W8123 Path 'C:\Users\Public\Documents\Embarcadero\Studio\18.0\hpp\Win32' not found - path ignored in option '-I'

[bcc32 Warning] W8123 Path 'C:\Users\Public\Documents\Embarcadero\Studio\18.0\hpp\Win32' not found - path ignored in option '-I'


#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include <map.h>  // this causes the error

//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
      : TForm(Owner)
{
}
//---------------------------------------------------------------------------



Thanks,

Roger
0
Comment
Question by:alcindor
1 Comment
 
LVL 2

Accepted Solution

by:
alcindor earned 0 total points
ID: 41867651
I found out that I should use #include <map> and use namespace std
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

825 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