dbTalk Databases Forums  

don't compile in dev-cpp 4.9.9.2

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss don't compile in dev-cpp 4.9.9.2 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default don't compile in dev-cpp 4.9.9.2 - 06-24-2006 , 05:59 PM






following is error info
make.exe -f "D:\project\C++\sql_dev\Makefile.win" all
g++.exe -c main.cpp -o main.o
-I"D:/software/Dev-Cpp/include/c++/3.4.2"
-I"D:/software/Dev-Cpp/include/c++/3.4.2/ext"
-I"D:/software/Dev-Cpp/include/c++/3.4.2/backward"
-I"D:/software/Dev-Cpp/include/c++/3.4.2/mingw32"
-I"D:/software/Dev-Cpp/lib/gcc/mingw32"
-I"D:/software/Dev-Cpp/include/gtk"
-I"D:/software/Dev-Cpp/include/glib/"
-I"D:/software/Dev-Cpp/include/pango" -I"D:/software/boost/"
-I"D:/software/MySQL/lib/opt" -I"D:/software/MySQL/mysql++/include"
-I"D:/software/MySQL/include" -finline-functions -O2 -pipe
-march=pentium3m -fprefetch-loop-arrays -mfpmath=sse
-m128bit-long-double -msse -fexpensive-optimizations -O3 -mwindows
-march=pentium3 -msse
g++.exe main.o -o "mysql_eg.exe" -L"lib"
.../../../software/Dev-Cpp/lib/libmysql.a
.../../../software/Dev-Cpp/lib/libmysqlpp.a
.../../../software/Dev-Cpp/lib/libmysqlclient.a -mwindows -s
-march=pentium3 -msse
Info: resolving vtable for mysqlpp::Rowby linking to
__imp___ZTVN7mysqlpp3RowE (auto-import)
Info: resolving vtable for mysqlpp::Queryby linking to
__imp___ZTVN7mysqlpp5QueryE (auto-import)
Info: resolving VTT for mysqlpp::Queryby linking to
__imp___ZTTN7mysqlpp5QueryE (auto-import)
main.o:main.cpp.text$_ZNK7mysqlpp6Result2atEj[mysqlpp::Result::at(unsigned
int) const]+0x99): variable 'vtable for mysqlpp::Row' can't be
auto-imported. Please read the documentation for ld's
--enable-auto-import for details.
main.o:main.cpp.text$_ZNK7mysqlpp6Result2atEj[mysqlpp::Result::at(unsigned
int) const]+0xa0): variable 'vtable for mysqlpp::Row' can't be
auto-imported. Please read the documentation for ld's
--enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x20):
variable 'vtable for mysqlpp::Query' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x48):
variable 'vtable for mysqlpp::Query' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x55):
variable 'vtable for mysqlpp::Query' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x5c):
variable 'vtable for mysqlpp::Query' can't be auto-imported. Please
read the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x23c):
variable 'VTT for mysqlpp::Query' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x24b):
variable 'VTT for mysqlpp::Query' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x322):
variable 'VTT for mysqlpp::Query' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x32c):
variable 'VTT for mysqlpp::Query' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
make.exe: *** [mysql_eg.exe] Error 1



--
gtalk:freeespeech (AT) gmail (DOT) com

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: don't compile in dev-cpp 4.9.9.2 - 06-26-2006 , 09:23 AM






owen nirvana wrote:
Quote:
variable 'VTT for mysqlpp::Query' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.
First, did the library examples build when you built the library? If
so, then the problem is a difference between the way you're building
your program vs. the way the examples are built. (And I hope you're
building the library with the supplied Makefiles, and not through
Dev-C++! That is not supported.)

Second, if the examples also don't build, then I would suggest upgrading
all of your tools. I'm not sure, but I think recent versions of MinGW
fix some problems we've had in the past, because it suddenly started
working for me, despite not working in the past.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: don't compile in dev-cpp 4.9.9.2 - 07-01-2006 , 08:49 PM



I have built it correctly.
dev-cpp 4.9.9.2
gcc 3.4.2
make 3.8.1

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: don't compile in dev-cpp 4.9.9.2 - 07-08-2006 , 09:05 PM



I have try again.
libmysqlclient.a libmysqlpp.a & libmysql_util.a could be generated correctly.
but it happens to be the same error about --enable-auto-import when I
compile examples with .\example\Makefile.mingw.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: don't compile in dev-cpp 4.9.9.2 - 07-10-2006 , 10:03 AM



------=_Part_86065_11564773.1152543703825
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Well I guess that everyone ignorede me, when errors like the following
happens with ld:

main.o:main.cpp.text$_ZN7mysqlpp5QueryD1Ev
[mysqlpp::Query::~Query()]+0x32c):
variable 'VTT for mysqlpp::Query' can't be auto-imported. Please read
the documentation for ld's --enable-auto-import for details.

All you need to do is add the --enable-runtime-pseudo-reloc flag to linker
flags (via LDFLAGS on makefiles or passing Wl,--enable-runtime-pseudo-reloc
to compiler when linking).


2006/7/8, owen nirvana <freeespeech (AT) gmail (DOT) com>:
Quote:
I have try again.
libmysqlclient.a libmysqlpp.a & libmysql_util.a could be generated
correctly.
but it happens to be the same error about --enable-auto-import when I
compile examples with .\example\Makefile.mingw.

------=_Part_86065_11564773.1152543703825--


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.