I compiled the debea libraries DBA and wxDBA, both with nmake, the VS2010 make tool, since with mingw32-make from TDM-MinGW I had no luck: For some mysterious reason it doesn't compile dba.lib, I found on the internet posts regarding the problem but they hadn't any useful answer (see: https://groups.google.com/forum/?fromgr ... GndgoVswBw).
To make it compile I had to patch a few things, but it's quite documented in the internet...
Anyway now here I am with the (nmake) compiled library, but when I include it in my code it fails at linking:
Code: Select all
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\database.h|170|warning: multi-line comment [-Wcomment]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h||In constructor 'dba::SQL::VarData::VarData(void*, const char*, const char*, int)':|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|233|warning: 'dba::SQL::VarData::mFilter' will be initialized after [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|230|warning: 'const char* dba::SQL::VarData::mSQLName' [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|210|warning: when initialized here [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h||In constructor 'dba::SQL::VarData::VarData(dba::StoreableFilterBase*, const char*, int)':|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|233|warning: 'dba::SQL::VarData::mFilter' will be initialized after [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|230|warning: 'const char* dba::SQL::VarData::mSQLName' [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|218|warning: when initialized here [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h||In instantiation of 'dba::MemberTableBase<T, M>::MemberTableBase(const char*) [with T = dba::StoreTable; M = dba::StoreTableMember]':|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|132|required from here|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|64|warning: 'dba::MemberTableBase<dba::StoreTable, dba::StoreTableMember>::mTableName' will be initialized after [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|63|warning: 'int dba::MemberTableBase<dba::StoreTable, dba::StoreTableMember>::mClassOffset' [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|602|warning: when initialized here [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h||In instantiation of 'dba::MemberTableBase<T, M>::MemberTableBase(const char*) [with T = dba::ColTable; M = dba::ColMemberEntry]':|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|167|required from here|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|64|warning: 'dba::MemberTableBase<dba::ColTable, dba::ColMemberEntry>::mTableName' will be initialized after [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|63|warning: 'int dba::MemberTableBase<dba::ColTable, dba::ColMemberEntry>::mClassOffset' [-Wreorder]|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\storeable.h|602|warning: when initialized here [-Wreorder]|
obj\Debug\CalimeroMain.o||In function `CalimeroFrame::CalimeroFrame(wxWindow*, int)':|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|98|undefined reference to `dba::SQLArchive::SQLArchive(dba::Database*)'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|103|undefined reference to `dba::SQLArchive::open(char const*, char const*)'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|110|undefined reference to `dba::SQL::SQL(char const*)'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|111|undefined reference to `dba::SQLArchive::getIStream()'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|111|undefined reference to `dba::SQLIStream::sendQuery(dba::SQL const&) const'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|111|undefined reference to `dba::SQLIStream::~SQLIStream()'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|110|undefined reference to `dba::SQL::~SQL()'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|115|undefined reference to `dba::SQLArchive::~SQLArchive()'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|111|undefined reference to `dba::SQLIStream::~SQLIStream()'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|110|undefined reference to `dba::SQL::~SQL()'|
D:\CodeBlocks\Calimero\CalimeroMain.cpp|115|undefined reference to `dba::SQLArchive::~SQLArchive()'|
obj\Debug\CalimeroMain.o||In function `dba::SQL& dba::SQL::into<int>(int&)':|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|148|undefined reference to `dba::SQL::setFilterDataForNextVar(void*, char const*, char const*, int)'|
obj\Debug\CalimeroMain.o||In function `dba::SQL& dba::SQL::into<std::string>(std::string&)':|
D:\wxWidgets-2.9.4\dba-debug-mono\include\dba\sql.h|148|undefined reference to `dba::SQL::setFilterDataForNextVar(void*, char const*, char const*, int)'|
||=== Build finished: 13 errors, 17 warnings (0 minutes, 9 seconds) ===|
Please is there anybody who has been successful in using the debea DBA library on windows?
Thanks, BR,
Max.