[Quickfix-developers] Need help with QuickFIX 4.4 C++
Brought to you by:
orenmnero
From: fixuser2 <ama...@ya...> - 2014-05-05 07:44:02
|
All, I'm trying to learn QuickFIX and wrote a small program below. I want to use QuickFIX to generate FIX messages. When I tried to compile it, I'm getting errors messages that I couldn't figure out. Your help will be greatly appreciated. Thank in advance. #include <iostream> #include "quickfix/Message.h" #include "quickfix/fix44/NewOrderSingle.h" using std::cout; using std::endl; int main( int argc, char *argv[] ) { time_t currentTime; time( ¤tTime ); FIX44::NewOrderSingle *newOrder = new FIX44::NewOrderSingle( FIX::ClOrdID( "1234" ), FIX::Side( FIX::Side_BUY ), FIX::TransactTime( FIX::UtcTimeStamp( currentTime ) ), FIX::OrdType( FIX::OrdType_MARKET ) ); } /tmp/ccSks0a9.o: In function `FIX::DateTime::fromUtcTimeT(long, int)': tstquickfix.cpp:(.text._ZN3FIX8DateTime12fromUtcTimeTEli[FIX::DateTime::fromUtcTimeT(long, int)]+0x22): undefined reference to `FIX::time_gmtime(long const*)' /tmp/ccSks0a9.o: In function `FIX::message_order::message_order(FIX::message_order const&)': tstquickfix.cpp:(.text._ZN3FIX13message_orderC2ERKS0_[_ZN3FIX13message_orderC5ERKS0_]+0x36): undefined reference to `FIX::message_order::operator=(FIX::message_order const&)' /tmp/ccSks0a9.o: In function `FIX::FieldMap::FieldMap(FIX::message_order const&)': tstquickfix.cpp:(.text._ZN3FIX8FieldMapC2ERKNS_13message_orderE[_ZN3FIX8FieldMapC5ERKNS_13message_orderE]+0x18): undefined reference to `vtable for FIX::FieldMap' /tmp/ccSks0a9.o: In function `FIX::Message::Message(FIX::BeginString const&, FIX::MsgType const&)': tstquickfix.cpp:(.text._ZN3FIX7MessageC2ERKNS_11BeginStringERKNS_7MsgTypeE[_ZN3FIX7MessageC5ERKNS_11BeginStringERKNS_7MsgTypeE]+0x15f): undefined reference to `FIX::FieldMap::~FieldMap()' tstquickfix.cpp:(.text._ZN3FIX7MessageC2ERKNS_11BeginStringERKNS_7MsgTypeE[_ZN3FIX7MessageC5ERKNS_11BeginStringERKNS_7MsgTypeE]+0x16f): undefined reference to `FIX::FieldMap::~FieldMap()' tstquickfix.cpp:(.text._ZN3FIX7MessageC2ERKNS_11BeginStringERKNS_7MsgTypeE[_ZN3FIX7MessageC5ERKNS_11BeginStringERKNS_7MsgTypeE]+0x17b): undefined reference to `FIX::FieldMap::~FieldMap()' /tmp/ccSks0a9.o: In function `FIX::Message::~Message()': tstquickfix.cpp:(.text._ZN3FIX7MessageD2Ev[_ZN3FIX7MessageD5Ev]+0x26): undefined reference to `FIX::FieldMap::~FieldMap()' tstquickfix.cpp:(.text._ZN3FIX7MessageD2Ev[_ZN3FIX7MessageD5Ev]+0x36): undefined reference to `FIX::FieldMap::~FieldMap()' tstquickfix.cpp:(.text._ZN3FIX7MessageD2Ev[_ZN3FIX7MessageD5Ev]+0x42): undefined reference to `FIX::FieldMap::~FieldMap()' tstquickfix.cpp:(.text._ZN3FIX7MessageD2Ev[_ZN3FIX7MessageD5Ev]+0x6f): undefined reference to `FIX::FieldMap::~FieldMap()' tstquickfix.cpp:(.text._ZN3FIX7MessageD2Ev[_ZN3FIX7MessageD5Ev]+0x80): undefined reference to `FIX::FieldMap::~FieldMap()' /tmp/ccSks0a9.o:(.rodata._ZTIN3FIX7MessageE[typeinfo for FIX::Message]+0x10): undefined reference to `typeinfo for FIX::FieldMap' collect2: ld returned 1 exit status -- View this message in context: http://quickfix.13857.n7.nabble.com/Need-help-with-QuickFIX-4-4-C-tp6642.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |