qq_39993240 2019-08-02 15:55 采纳率: 33.3%
浏览 273
已结题

quikfix库连接问题,求解

gcc -m64 -o test test.o -lstdc++ -ldl -pthread -L/home/quickfix-1.13.3/lib/libquickfix.a -Lquickfix

报错

test.o: In function FIX::message_order::message_order(FIX::message_order const&)':
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../MessageSorters.h:121: undefined reference to
FIX::message_order::operator=(FIX::message_order const&)'
test.o: In function FIX::FieldMap::FieldMap(FIX::message_order const&)':
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../FieldMap.h:67: undefined reference to
vtable for FIX::FieldMap'
test.o: In function FIX::Message::Message(FIX::BeginString const&, FIX::MsgType const&)':
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../Message.h:122: undefined reference to
FIX::FieldMap::~FieldMap()'
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../Message.h:122: undefined reference to FIX::FieldMap::~FieldMap()'
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../Message.h:122: undefined reference to
FIX::FieldMap::~FieldMap()'
test.o: In function FIX::Message::~Message()':
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../Message.h:57: undefined reference to
FIX::FieldMap::~FieldMap()'
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../Message.h:57: undefined reference to FIX::FieldMap::~FieldMap()'
/home/ktgs/ktgs/src/ktgs/translate/src/third/quickfix/fix50sp2/../Message.h:57: undefined reference to
FIX::FieldMap::~FieldMap()'
test.o:(.rodata._ZTIN3FIX7MessageE[_ZTIN3FIX7MessageE]+0x10): undefined reference to `typeinfo for FIX::FieldMap'

  • 写回答

2条回答 默认 最新

  • 关注
    评论

报告相同问题?