|
-
February 21st, 2006, 07:47 AM
#1
STL map declaration
hi
I need to declare a map globally and use it all over my project. I am declaring the map in a header file like this
map<string,string> gsObjForPrimaryMap;
and in another file i am using it as follows
extern map<string,string> gsObjForPrimaryMap;
typedef pair<string,string> mypair;
when i try to link the project it is giving me syntax error near the extern.
If i have to declare a map globally and use it am i doing the correct thing if not please correct me
thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|