-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a problem compiling an app that uses the MySQL C API.  My program 
itself is C++ using Visual C++ 6.0 in Windows 2000, but the C api is plenty 
sufficient for me.  I suspect the problem comes because when I include C++ 
streams, I use the ANSI C++ standard way of doing so:

#include <iostream>

(and then I import the std namespace) rather than the deprecated way of 
doing so:

#include <iostream.h>

When I include the C api by doing:

#include <config-win.h>
#include <mysql.h>

I get a slew of errors.  For the life of me, I cannot figure out how to fix 
them (I must be sleepy and/or hungry).  Can someone help me out?  I tried 
searching the mailing lists but I couldn't find anything.  Here are my 
errors, everything else that does not use MySQL compiles just fine:

f:\vs6\vc98\include\ostream(106) : error C2535: 'class 
std::basic_ostream<_E,_Tr> &__thiscall std::basic_ostream<_E,_Tr>::operator 
<<(int)' : member function already defined or declared
         f:\vs6\vc98\include\ostream(66) : see declaration of '<<'
         f:\vs6\vc98\include\ostream(272) : see reference to class template 
instantiation 'std::basic_ostream<_E,_Tr>' being compiled
f:\vs6\vc98\include\ostream(106) : error C2535: 'class 
std::basic_ostream<char,struct std::char_traits<char> > &__thiscall 
std::basic_ostream<char,struct std::char_traits<char> >::operator <<(int)' 
: member function already defined or declared
         f:\vs6\vc98\include\ostream(66) : see declaration of '<<'
         f:\vs6\vc98\include\ostream(373) : see reference to class template 
instantiation 'std::basic_ostream<char,struct std::char_traits<char> >' 
being compiled
f:\vs6\vc98\include\ostream(106) : error C2535: 'class 
std::basic_ostream<unsigned short,struct std::char_traits<unsigned short> > 
&__thiscall std::basic_ostream<unsigned short,struct 
std::char_traits<unsigned short> >::operator <<(int)' : member fu
nction already defined or declared
         f:\vs6\vc98\include\ostream(66) : see declaration of '<<'
         f:\vs6\vc98\include\ostream(379) : see reference to class template 
instantiation 'std::basic_ostream<unsigned short,struct 
std::char_traits<unsigned short> >' being compiled
f:\vs6\vc98\include\istream(103) : error C2535: 'class 
std::basic_istream<_E,_Tr> &__thiscall 
std::basic_istream<_E,_Tr>::operator >>(int &)' : member function already 
defined or declared
         f:\vs6\vc98\include\istream(67) : see declaration of '>>'
         f:\vs6\vc98\include\istream(423) : see reference to class template 
instantiation 'std::basic_istream<_E,_Tr>' being compiled
f:\vs6\vc98\include\istream(103) : error C2535: 'class 
std::basic_istream<char,struct std::char_traits<char> > &__thiscall 
std::basic_istream<char,struct std::char_traits<char> >::operator >>(int 
&)' : member function already defined or declared
         f:\vs6\vc98\include\istream(67) : see declaration of '>>'
         f:\vs6\vc98\include\istream(544) : see reference to class template 
instantiation 'std::basic_istream<char,struct std::char_traits<char> >' 
being compiled
f:\vs6\vc98\include\istream(103) : error C2535: 'class 
std::basic_istream<unsigned short,struct std::char_traits<unsigned short> > 
&__thiscall std::basic_istream<unsigned short,struct 
std::char_traits<unsigned short> >::operator >>(int &)' : member
function already defined or declared
         f:\vs6\vc98\include\istream(67) : see declaration of '>>'
         f:\vs6\vc98\include\istream(564) : see reference to class template 
instantiation 'std::basic_istream<unsigned short,struct 
std::char_traits<unsigned short> >' being compiled


-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Security 7.0.3

iQA/AwUBPEhuBgAttZAy2w6WEQJKeQCg7Q0Boc2Fe8GP/sWhqYRNok9bOqUAoLHQ
Wd+TBIoG6WffQGGbjJ/WmWX+
=AeiD
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to