私はデータ構造を使用しますbimap
typedef boost::bimap< std::string, int > hash_bimap;
typedef hash_bimap::value_type position;
hash_bimap perm;
メインファイルで正常に動作します。ただし、ヘッダーファイルで使用して、他の.cpp
ファイルでアクセスできるようにすることに興味があります。
extern
のmy.h
ようにしようとすると
extern typedef boost::bimap< std::string, int > hash_bimap;
extern typedef hash_bimap::value_type position;
extern hash_bimap perm;
「hash_bimap」の宣言で競合する指定子 extern typedef boost::bimap< std::string, int > hash_bimap;