[Quickfix-users] Compile with MySQL
Brought to you by:
orenmnero
|
From: Jim M. <per...@my...> - 2003-05-28 08:48:03
|
Hi,
Just trying to compile QuickFIX 1.5.0 on RedHat 9 with MySQL support.
Configure runs OK with
./configure --with-mysql=/var/lib/mysql
Make has problems towards the end. Everything is fine until ...
---------- begin log ------------
---- lines 1 to 198 removed -----
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I.. -I../.. -I../../.. -g -O2
-Wall -I/var/lib/mysql/include/mysql -I/usr/include/libxml2
-I/usr/java/j2sdk1.4.1_02/include -I/usr/java/j2sdk1.4.1_02/include/linux
-Wp,-MD,.deps/MySQLStore.pp -c MySQLStore.cpp -fPIC -DPIC -o MySQLStore.lo
MySQLStore.cpp:65:19: mysql.h: No such file or directory
MySQLStore.cpp: In constructor `FIX::MySQLStore::MySQLStore(const
FIX::SessionID&, const std::string&, const std::string&, const
std::string&,
const std::string&, short int)':
MySQLStore.cpp:82: `mysql_init' undeclared (first use this function)
MySQLStore.cpp:82: (Each undeclared identifier is reported only once for each
function it appears in.)
MySQLStore.cpp:84: `MYSQL' undeclared (first use this function)
MySQLStore.cpp:84: `pConnection' undeclared (first use this function)
MySQLStore.cpp:84: parse error before `*' token
MySQLStore.cpp:86: `mysql_real_connect' undeclared (first use this function)
MySQLStore.cpp: In destructor `virtual FIX::MySQLStore::~MySQLStore()':
MySQLStore.cpp:96: parse error before `*' token
MySQLStore.cpp:97: `mysql_close' undeclared (first use this function)
MySQLStore.cpp: In member function `void FIX::MySQLStore::populateCache()':
MySQLStore.cpp:103: parse error before `*' token
MySQLStore.cpp:110: `mysql_query' undeclared (first use this function)
MySQLStore.cpp:112: `MYSQL_RES' undeclared (first use this function)
MySQLStore.cpp:112: `result' undeclared (first use this function)
MySQLStore.cpp:112: `mysql_store_result' undeclared (first use this function)
MySQLStore.cpp:115: `my_ulonglong' undeclared (first use this function)
MySQLStore.cpp:115: parse error before `=' token
MySQLStore.cpp:116: `num_rows' undeclared (first use this function)
MySQLStore.cpp:120: `MYSQL_ROW' undeclared (first use this function)
MySQLStore.cpp:120: parse error before `=' token
MySQLStore.cpp:122: `row' undeclared (first use this function)
MySQLStore.cpp: In member function `virtual bool FIX::MySQLStore::set(int,
const std::string&)':
MySQLStore.cpp:202: parse error before `*' token
MySQLStore.cpp: In member function `virtual bool FIX::MySQLStore::get(int,
std::string&) const':
MySQLStore.cpp:233: parse error before `*' token
MySQLStore.cpp:244: `mysql_num_rows' undeclared (first use this function)
MySQLStore.cpp:245: parse error before `=' token
MySQLStore.cpp: In member function `virtual void FIX::MySQLStore::get(int, int,
std::vector<std::string, std::allocator<std::string> >&) const':
MySQLStore.cpp:258: parse error before `*' token
MySQLStore.cpp:270: `sqlResult' undeclared (first use this function)
MySQLStore.cpp:272: parse error before `=' token
MySQLStore.cpp: In member function `virtual void
FIX::MySQLStore::setNextSenderMsgSeqNum(int)':
MySQLStore.cpp:293: parse error before `*' token
MySQLStore.cpp: In member function `virtual void
FIX::MySQLStore::setNextTargetMsgSeqNum(int)':
MySQLStore.cpp:309: parse error before `*' token
MySQLStore.cpp: In member function `virtual void FIX::MySQLStore::reset()':
MySQLStore.cpp:345: parse error before `*' token
make[4]: *** [MySQLStore.lo] Error 1
make[4]: Leaving directory `/root/quickfix_1.5/src/C++'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/quickfix_1.5/src/C++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/quickfix_1.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/quickfix_1.5'
make: *** [all-recursive-am] Error 2
----------- end log --------------------------
Any idea what's going on here? Thanks.
Jim
|