C++程序编译出现这种问题是怎么回事?
高洛峰
高洛峰 2017-04-17 13:57:54
0
1
558
wangxiaoxiaodeMacBook-Air:TextQuery wangxiaoxiao$ g++ -std=c++11  main.cpp  TextQuery.cpp QueryResult.cpp Query.cpp Query_base.cpp WordQuery.cpp AndQuery.cpp OrQuery.cpp  -o TextQuery
Undefined symbols for architecture x86_64:
  "operator&(Query const&, Query const&)", referenced from:
      RunQueries(std::basic_ifstream<char, std::char_traits<char> >&) in ccXxFDh5.o
  "operator|(Query const&, Query const&)", referenced from:
      RunQueries(std::basic_ifstream<char, std::char_traits<char> >&) in ccXxFDh5.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
迷茫

Operator not overloaded

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template