Solved

Path to  STL Map header file

Posted on 2016-10-31
1
23 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
Comment Utility
I found out that I should use #include <map> and use namespace std
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

763 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

9 Experts available now in Live!

Get 1:1 Help Now