I am a python programmer looking for assistance with C++. I am trying to import a dictionary from a CSV file but I am getting the following error:
undefined reference to 'std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream()'
#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;
map<string, string> hash_table;
void load_map(){
// File pointer
ifstream fin;
fin.open("output.txt");
// Read the Data from the file
// as String Vector
string temp;
string key, delim, value;
while (fin >> temp) {
fin >> key;
fin >> delim;
fin >> value;
hash_table[key] = value;
}
}
int main()
{
load_map();
cout << hash_table["A12B12C11D11E11F11G10"];
return 0;
}