Solved

Path to  STL Map header file

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C Language combined operators 28 122
C++ finding a sting in a char* string from a text file 3 130
Which Linux flavors will this run on? 6 102
No module found pypyodbc, 3 43
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 learn how to clear a vector as well as how to detect empty vectors in C++.

761 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