Hi all, I've got a problem when I want to create a global map
//file operator.cpp #include <map> map<string, Staff*>
Symbol_definition; Symbol_definition["+"] = NULL;
Symbol_definition["-"] = NULL; Symbol_definition["*"] = NULL;
Symbol_definition["/"] = NULL;
///////////////////////////////////////////////////////////////////
//file calculate.cpp #include "opertor.cpp" #include <map> extern
map<string, Cell*> Symbol_definition; .... and when I compile it in
g++ then I got the following error operator.cpp:17: error: expected
constructor, destructor, or type conversion before '=' token
operator.cpp:17: error: expected `,' or `;' before '=' token ....same
the others. What cause the error? Thanks