List:MySQL++« Previous MessageNext Message »
From:Zahroof Mohamed Date:March 9 2005 3:34am
Subject:Re: RELEASE: v1.7.31
View as plain text  
After a long gap (I've been using v1.7.23 during this time), I
downloaded the release 1.7.31 source and built the dll using gcc 3.4.2
on my Win2K system - MinGW.

Everything went fine. Only problem was some #pragma warning meant for
MS VC++ creating warnings when I compiled the code. But this went away
with the following modification:

In convert.h, replace 4 instances of 

#if defined(__WIN32__) || defined(_WIN32)
#	pragma warning(default: 4244)
#endif

with


#if defined(_MSC_VER)
#	pragma warning(default: 4244)
#endif


However, when I tested the resulting mysqlpp.dll with my test code, I
got the following link error. The vtable in row cannot be
auto-imported. What do I need to do? Please help!!

--------------------Configuration: MySQLTest - Debug--------------------
Linking...
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x8b5): In
function `main':
E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79: variable 'vtable for
mysqlpp::Row' can't be auto-imported. Please read the documentation
for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x8e6):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x933):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
for mysqlpp::Row' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x9cd):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xa1a):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xa67):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xab4):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xb01):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xb4e):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
be auto-imported. Please read the documentation for ld's
--enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xbe8):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xc35):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0xc70):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:79:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
\app.o(.text+0x1ac5):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1af6):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1b43):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
read the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1bdd):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1c2a):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1c77):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135: variable 'vtable for
mysqlpp::Row' can't be auto-imported. Please read the documentation
for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1d11):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1d5e):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1df8):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1e45):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text+0x1e80):E:\Workspace\C++\MySQL\MySQLTest_dll\app.cpp:135:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
':
E:\Libraries\mysqlpp\query.h: variable 'vtable for mysqlpp::Row' can't
be auto-imported. Please read the documentation for ld's
--enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text$_ZN7mysqlpp3RowD1Ev[mysqlpp::Row::~Row()]+0x46):E:\Libraries\mysqlpp\query.h:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text$_ZN7mysqlpp3RowC1Ev[mysqlpp::Row::Row()]+0x53):E:\Libraries\mysqlpp\query.h:
variable 'vtable for mysqlpp::Row' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text$_ZN7mysqlpp3RowC1EPPcPKNS_6ResUseEPmb[mysqlpp::Row::Row(char**,
mysqlpp::ResUse const*, unsigned long*,
bool)]+0x68):E:\Libraries\mysqlpp\query.h: variable 'vtable for
mysqlpp::Row' can't be auto-imported. Please reInfo: resolving vtable
for mysqlpp::Rowby linking to __imp___ZTVN7mysqlpp3RowE (auto-import)
ad the documentation for ld's --enable-auto-import for details.
E:\Workspace\C++\MySQL\MySQLTest_dll\Debug\app.o(.text$_ZN7mysqlpp3RowC1EPPcPKNS_6ResUseEPmb[mysqlpp::Row::Row(char**,
mysqlpp::ResUse const*, unsigned long*,
bool)]+0x74):E:\Libraries\mysqlpp\query.h: variable 'vtable for
mysqlpp::Row' can't be auto-imported. Please read the documentation
for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status

MySQLTest.exe - 24 error(s), 0 warning(s)



Thanks,

Zahroof Mohamed
Thread
RELEASE: v1.7.31Warren Young5 Mar
  • Re: RELEASE: v1.7.31Zahroof Mohamed9 Mar
    • Re: RELEASE: v1.7.31Warren Young9 Mar