Solved

Path to  STL Map header file

Posted on 2016-10-31
1
101 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

705 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