Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

您好,编译的时候出现 未定义的引用,请问是什么原因导致的? #59

Open
long2double opened this issue May 31, 2021 · 0 comments

Comments

@long2double
Copy link

ModelImporter.cpp:(.text+0x84fb):对‘google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor()’未定义的引用
ModelImporter.cpp:(.text+0x8504):对‘google::protobuf::io::FileInputStream::CopyingFileInputStream::~CopyingFileInputStream()’未定义的引用
ModelImporter.cpp:(.text+0x8523):对‘google::protobuf::io::CodedInputStream::default_recursion_limit_’未定义的引用
ModelImporter.cpp:(.text+0x85cd):对‘google::protobuf::io::CodedInputStream::Refresh()’未定义的引用
ModelImporter.cpp:(.text+0x85da):对‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’未定义的引用
ModelImporter.cpp:(.text+0x85e5):对‘google::protobuf::MessageLite::ParseFromCodedStream(google::protobuf::io::CodedInputStream*)’未定义的引用
ModelImporter.cpp:(.text+0x86d3):对‘google::protobuf::io::CodedInputStream::~CodedInputStream()’未定义的引用
ModelImporter.cpp:(.text+0x86e4):对‘google::protobuf::io::CodedInputStream::~CodedInputStream()’未定义的引用
ModelImporter.cpp:(.text+0x88c6):对‘vtable for google::protobuf::io::FileInputStream’未定义的引用
ModelImporter.cpp:(.text+0x88db):对‘google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor()’未定义的引用
ModelImporter.cpp:(.text+0x88e4):对‘google::protobuf::io::FileInputStream::CopyingFileInputStream::~CopyingFileInputStream()’未定义的引用
ModelImporter.cpp:(.text+0x89b6):对‘google::protobuf::io::CodedInputStream::~CodedInputStream()’未定义的引用
objs/onnx_parser/ModelImporter.o:在函数‘onnx2trt::ModelImporter::parseFromFile(char const*, int)’中:
ModelImporter.cpp:(.text+0x8aef):对‘google::protobuf::internal::VerifyVersion(int, int, char const*)’未定义的引用
ModelImporter.cpp:(.text+0x8b32):对‘google::protobuf::io::FileInputStream::FileInputStream(int, int)’未定义的引用
ModelImporter.cpp:(.text+0x8b39):对‘google::protobuf::io::CodedInputStream::default_recursion_limit_’未定义的引用
ModelImporter.cpp:(.text+0x8beb):对‘google::protobuf::io::CodedInputStream::Refresh()’未定义的引用
ModelImporter.cpp:(.text+0x8bf8):对‘google::protobuf::io::CodedInputStream::SetTotalBytesLimit(int)’未定义的引用
ModelImporter.cpp:(.text+0x8c03):对‘google::protobuf::MessageLite::ParseFromCodedStream(google::protobuf::io::CodedInputStream*)’未定义的引用
ModelImporter.cpp:(.text+0x8c0e):对‘google::protobuf::io::CodedInputStream::~CodedInputStream()’未定义的引用
ModelImporter.cpp:(.text+0x8c15):对‘vtable for google::protobuf::io::FileInputStream’未定义的引用
ModelImporter.cpp:(.text+0x8c2a):对‘google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor()’未定义的引用
ModelImporter.cpp:(.text+0x8c33):对‘google::protobuf::io::FileInputStream::CopyingFileInputStream::~CopyingFileInputStream()’未定义的引用
ModelImporter.cpp:(.text+0x9280):对‘google::protobuf::RepeatedPtrFieldstd::string::size() const’未定义的引用
ModelImporter.cpp:(.text+0x9295):对‘google::protobuf::RepeatedPtrFieldstd::string::Get(int) const’未定义的引用
ModelImporter.cpp:(.text+0x9675):对‘google::protobuf::TextFormat::PrintToString(google::protobuf::Message const&, std::string*)’未定义的引用
ModelImporter.cpp:(.text+0x9eeb):对‘google::protobuf::io::FileInputStream::FileInputStream(int, int)’未定义的引用
ModelImporter.cpp:(.text+0x9f00):对‘google::protobuf::TextFormat::Parse(google::protobuf::io::ZeroCopyInputStream*, google::protobuf::Message*)’未定义的引用
ModelImporter.cpp:(.text+0x9f18):对‘google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor()’未定义的引用
ModelImporter.cpp:(.text+0x9f21):对‘google::protobuf::io::FileInputStream::CopyingFileInputStream::~CopyingFileInputStream()’未定义的引用
ModelImporter.cpp:(.text+0xa04e):对‘google::protobuf::io::CodedInputStream::~CodedInputStream()’未定义的引用
ModelImporter.cpp:(.text+0xa05a):对‘vtable for google::protobuf::io::FileInputStream’未定义的引用
ModelImporter.cpp:(.text+0xa06f):对‘google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor()’未定义的引用
ModelImporter.cpp:(.text+0xa078):对‘google::protobuf::io::FileInputStream::CopyingFileInputStream::~CopyingFileInputStream()’未定义的引用
ModelImporter.cpp:(.text+0xa0f9):对‘google::protobuf::io::CopyingInputStreamAdaptor::~CopyingInputStreamAdaptor()’未定义的引用
ModelImporter.cpp:(.text+0xa105):对‘google::protobuf::io::FileInputStream::CopyingFileInputStream::~CopyingFileInputStream()’未定义的引用
objs/onnx_parser/ModelImporter.o:在函数‘bool toposort<google::protobuf::RepeatedPtrField<ONNX_NAMESPACE::NodeProto> >(google::protobuf::RepeatedPtrField<ONNX_NAMESPACE::NodeProto> const&, std::vector<unsigned long, std::allocator >*)’中:
ModelImporter.cpp:(.text._Z8toposortIN6google8protobuf16RepeatedPtrFieldIN14ONNX_NAMESPACE9NodeProtoEEEEbRKT_PSt6vectorImSaImEE[_Z8toposortIN6google8protobuf16RepeatedPtrFieldIN14ONNX_NAMESPACE9NodeProtoEEEEbRKT_PSt6vectorImSaImEE]+0xda):对‘google::protobuf::RepeatedPtrFieldstd::string::begin() const’未定义的引用
ModelImporter.cpp:(.text._Z8toposortIN6google8protobuf16RepeatedPtrFieldIN14ONNX_NAMESPACE9NodeProtoEEEEbRKT_PSt6vectorImSaImEE[_Z8toposortIN6google8protobuf16RepeatedPtrFieldIN14ONNX_NAMESPACE9NodeProtoEEEEbRKT_PSt6vectorImSaImEE]+0xe5):对‘google::protobuf::RepeatedPtrFieldstd::string::end() const’未定义的引用
objs/onnx_parser/OnnxAttrs.o:在函数‘std::vector<float, std::allocator > OnnxAttrs::get<std::vector<float, std::allocator > >(std::string) const’中:
/home/yanyan/tensorRTIntegrate/src/onnx_parser/OnnxAttrs.cpp:53:对‘google::protobuf::RepeatedField::~RepeatedField()’未定义的引用
objs/onnx_parser/OnnxAttrs.o:在函数‘std::vector<float, std::allocator > OnnxAttrs::get<std::vector<float, std::allocator > >(std::string) const’中:
OnnxAttrs.cpp:(.text+0xdbc):对‘google::protobuf::RepeatedField::Reserve(int)’未定义的引用
OnnxAttrs.cpp:(.text+0xeac):对‘google::protobuf::RepeatedField::~RepeatedField()’未定义的引用
objs/onnx_parser/OnnxAttrs.o:在函数‘std::vector<long, std::allocator > OnnxAttrs::get<std::vector<long, std::allocator > >(std::string) const’中:
OnnxAttrs.cpp:(.text+0x1056):对‘google::protobuf::RepeatedField::~RepeatedField()’未定义的引用
OnnxAttrs.cpp:(.text+0x109c):对‘google::protobuf::RepeatedField::Reserve(int)’未定义的引用
OnnxAttrs.cpp:(.text+0x118c):对‘google::protobuf::RepeatedField::~RepeatedField()’未定义的引用
objs/onnx_parser/OnnxAttrs.o:在函数‘std::vector<int, std::allocator > OnnxAttrs::get<std::vector<int, std::allocator > >(std::string) const’中:
OnnxAttrs.cpp:(.text+0x13c2):对‘google::protobuf::RepeatedField::~RepeatedField()’未定义的引用
OnnxAttrs.cpp:(.text+0x13e4):对‘google::protobuf::RepeatedField::Reserve(int)’未定义的引用
OnnxAttrs.cpp:(.text+0x1521):对‘google::protobuf::RepeatedField::~RepeatedField()’未定义的引用
collect2: 错误:ld 返回 1
make: *** [workspace/trtrun] 错误 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant