我在尝试将应用程序与 mongodb C++ 驱动程序链接时遇到一个链接器错误。我不确定出了什么问题。
(.rodata._ZTVN5mongo16ConnectExceptionE[_ZTVN5mongo16ConnectExceptionE]+0x40): undefined reference to `mongo::DBException::toString() const'
clang: error: linker command failed with exit code 1 (use -v to see invocation)