This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MySQL server under cygwin


On Sat, Jul 27, 2002 at 08:00:17PM +0200, Gerrit P. Haase wrote:
>make[2]: Entering directory `/sourcecode/db/mysql-4.0.2-alpha/client'
>gcc -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti  -DUSE_MYSYS_NEW -c mysqlbinlog.cc
>`-mpentiumpro' is deprecated. Use `-march=pentiumpro' or `-mcpu=pentiumpro' instead.
>sh ../libtool --mode=link gcc  -O3 -DDBUG_OFF -O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti  -fno-implicit-templates -fno-exceptions -fno-rtti  -DUSE_MYSYS_NEW  -o mysqlbinlog  mysqlbinlog.o ../libmysql/libmysqlclient.la -Wl,--defsym -Wl,__cxa_pure_virtual=0 -lz -lcrypt -lm  
>gcc -O3 -DDBUG_OFF -O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -o mysqlbinlog mysqlbinlog.o ../libmysql/.libs/libmysqlclient.a -lz -lcrypt -Wl,--defsym -Wl,__cxa_pure_virtual=0 -lz -lcrypt
>mysqlbinlog.o(.data$_ZTV9Log_event+0x8):mysqlbinlog.cc: undefined reference to `___cxa_pure_virtual'
>mysqlbinlog.o(.data$_ZTV9Log_event+0x18):mysqlbinlog.cc: undefined reference to `___cxa_pure_virtual'
>mysqlbinlog.o(.data$_ZTV9Log_event+0x1c):mysqlbinlog.cc: undefined reference to `___cxa_pure_virtual'
>collect2: ld returned 1 exit status
>make[2]: *** [mysqlbinlog] Error 1
>make[2]: Leaving directory `/sourcecode/db/mysql-4.0.2-alpha/client'
>
>BTW, works well when using g++ instead of gcc.  God knows why they
>think that using gcc instead of g++ is better.

Yes, that's the problem.  If you use gcc rather than g++ to compile a g++
program then it is more likely to fail in gcc 3.1.1.  That's not a bug, though,
as you have correctly surmised.  Using g++ should work.  I'm not aware of any
shared/static issues with gcc for windows.

Thanks for clarifying this.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]