Solved

Path to  STL Map header file

Posted on 2016-10-31
1
40 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

937 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

Need Help in Real-Time?

Connect with top rated Experts

3 Experts available now in Live!

Get 1:1 Help Now