2012-05-09 14 views
4

Visual C++コンパイラを使用してMavenでプロジェクトをコンパイルしようとしていますが、std :: basic_stringクラスに関してリンケージエラーが発生し続けます。対応するC++ファイルに<文字列>ヘッダファイルを含めることを保証しました。未解決の外部シンボル "std :: basic_string"

私は何かが恋しくなったのですか、私は愚かな間違いをしましたか?私がどこに間違って行ったか教えてください。

[ERROR] Parsor.obj : error LNK2001: unresolved external symbol 

"__declspec(dllimport) public: 
    int __thiscall std::basic_string< 
     char, 
     struct std::char_traits<char>, 
     class std::allocator<char> >::compare(
      class std::basic_string< 
       char, 
       struct std::char_traits<char>, 
       class std::allocator<char> > const &) const" 

([email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z) 
+0

のbasic_stringは、テンプレートです。 – stark

+0

愚かな間違い - std :: stringを使う...あなたがbasic_stringの独自のtypedefを実装しない限り、std :: basic_stringに触れないでください。 (私はそれをすることをお勧めしません) – johnathon

+2

私はstd :: basic_stringを直接使用しません、私はstd :: stringのみを使用します – user667967

答えて

関連する問題