std::map in VC 6.0

D

Dymus

Can smb help me?:
here is the code

#include <map>

using namespace std;

std::map<int, std::string> some_map;
....

this thing isn't working... Am i doing something wrong?? i need to
create map object with int key and string value... :S:S
 
D

Dymus

Dymus said:
Can smb help me?:
here is the code

#include <map>

using namespace std;

std::map<int, std::string> some_map;
...

this thing isn't working... Am i doing something wrong?? i need to
create map object with int key and string value... :S:S

#include <map>
#include <string>

using namespace std;

std::map<int, std::string> some_map;

even this wont help :S
 
D

Dymus

Dymus said:
Can smb help me?:
here is the code

#include <map>

using namespace std;

std::map<int, std::string> some_map;
...

this thing isn't working... Am i doing something wrong?? i need to
create map object with int key and string value... :S:S

#include <map>
#include <string>

using namespace std;

std::map<int, std::string> some_map;

even this wont help :S
 
D

Dymus

Dymus said:
compiler starts to give errors already on
#include <map>

statement
Found solution:
trick is that you have to include stl libaries before anything else.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top