我不确定这怎么可能。我正在构建一个 OS X 应用程序。当我通过选择 Run 编译它时,这个应用程序构建和运行得很好,但是当我选择 Product->Profile 时出现以下链接器错误
Undefined symbols for architecture x86_64:
"void ByteString::readNextTo<unsigned short>(unsigned short&)", referenced from:
CommandPacket::readNextCommandTo(Command&) in Command.o
"void ByteString::append<unsigned short>(unsigned short const&)", referenced from:
TelemetryPacket::setSAS(int) in Telemetry.o
"void ByteString::readAtTo<unsigned char>(unsigned short, unsigned char&)", referenced from:
etc
这是指文件 Packet.cpp 和 Packet.hpp,它们是 C++ 文件。我正常编译时,项目成功找到了这些文件。任何帮助将不胜感激。谢谢!