Click here to Skip to main content
15,914,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: the all very nice, but my code DON'T WORKING !!! Pin
Christian Graus20-May-01 10:06
protectorChristian Graus20-May-01 10:06 
GeneralRe: the all very nice, but my code DON'T WORKING !!! Pin
Rick York20-May-01 21:37
mveRick York20-May-01 21:37 
GeneralRe: Why do you want to use global variable? Pin
Masaaki Onishi20-May-01 12:09
Masaaki Onishi20-May-01 12:09 
GeneralIt's me again. Looking for suggestions... Pin
Stephen Caldwell19-May-01 19:46
Stephen Caldwell19-May-01 19:46 
GeneralRe: It's me again. Looking for suggestions... Pin
l a u r e n20-May-01 2:33
l a u r e n20-May-01 2:33 
GeneralRe: Hum, sound like IM Messenger. Pin
Masaaki Onishi20-May-01 5:00
Masaaki Onishi20-May-01 5:00 
GeneralRe: Hum, sound like IM Messenger. Pin
l a u r e n20-May-01 10:54
l a u r e n20-May-01 10:54 
GeneralMySql++ Pin
Stephen Caldwell19-May-01 18:53
Stephen Caldwell19-May-01 18:53 
I'm trying to add MySql connectivity to my application, but i don't want to have to use ODBC. When i ad the mysql++ header file to my application i get these errors:

d:\development\sources\mysql++\mysql\include\mysql_com.h(115) : error C2146: syntax error : missing ';' before identifier 'fd'
d:\development\sources\mysql++\mysql\include\mysql_com.h(115) : error C2501: 'SOCKET' : missing storage-class or type specifiers
d:\development\sources\mysql++\mysql\include\mysql_com.h(115) : error C2501: 'fd' : missing storage-class or type specifiers

I include winsock2.h but all that ends up doing is causing redefiniton errors in the rest of the app. I was able to find a way to get it to compile, but whenever I try to use a certain class i get this:

msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: virtual __thiscall std::basic_ios<char,struct std::char_traits<char=""> >::~basic_ios<char,struct std::char_traits<char=""> >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UAE@XZ) already defined
in mysql++.lib(sql_query.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: virtual __thiscall std::basic_iostream<char,struct std::char_traits<char=""> >::~basic_iostream<char,struct std::char_traits<char=""> >(void)" (??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UAE@XZ) a
lready defined in mysql++.lib(sql_query.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_iostream<char,struct std::char_traits<char=""> >::basic_iostream<char,struct std::char_traits<char=""> >(class basic_iostream<char,struct std::char_traits<char=""> >::basic_streambuf<
char,struct std::char_traits<char> > *)" (??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QAE@PAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z) already defined in mysql++.lib(sql_query.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: virtual __thiscall std::basic_streambuf<char,struct std::char_traits<char=""> >::~basic_streambuf<char,struct std::char_traits<char=""> >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ
) already defined in mysql++.lib(sql_query.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in mysql++.lib(sql_query.obj)
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char="">,class std::allocator<char> >(void)" (??1?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in mysql++.lib(connection.obj)
libcp.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::_Locinfo(char const *)" (??0_Locinfo@std@@QAE@PBD@Z) already defined in msvcprtd.lib(MSVCP60D.dll)
libcp.lib(locale.obj) : error LNK2005: "public: __thiscall std::_Locinfo::~_Locinfo(void)" (??1_Locinfo@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP60D.dll)
libcp.lib(locale0.obj) : error LNK2005: "public: class std::locale::facet const * __thiscall std::locale::_Getfacet(unsigned int,bool)const " (?_Getfacet@locale@std@@QBEPBVfacet@12@I_N@Z) already defined in msvcprtd.lib(MSVCP60D.dll)
libcp.lib(locale0.obj) : error LNK2005: "public: bool __thiscall std::locale::_Iscloc(void)const " (?_Iscloc@locale@std@@QBE_NXZ) already defined in msvcprtd.lib(MSVCP60D.dll)

etc...


Has anyone found a way around this bug(?)?. Could suggest a better way to manage a database without using
mySql. I can't use Access so don't suggest it. Thanx in advance.

Stephen Caldwell
Desick Information Technologies
GeneralRe: MySql++ Pin
l a u r e n20-May-01 2:35
l a u r e n20-May-01 2:35 
GeneralRe: MSDE? Pin
Masaaki Onishi20-May-01 7:34
Masaaki Onishi20-May-01 7:34 
GeneralRe: MSDE? Pin
Anders Molin20-May-01 8:54
professionalAnders Molin20-May-01 8:54 
GeneralRe: Humm. Pin
Masaaki Onishi20-May-01 11:56
Masaaki Onishi20-May-01 11:56 
GeneralRe: Humm. Pin
Anders Molin20-May-01 12:07
professionalAnders Molin20-May-01 12:07 
GeneralRe: Humm. Pin
l a u r e n20-May-01 21:26
l a u r e n20-May-01 21:26 
GeneralRe: Humm. Pin
Anders Molin20-May-01 21:35
professionalAnders Molin20-May-01 21:35 
GeneralGetting URL from File Download Launched by CHtmlView Pin
User 1278219-May-01 17:17
User 1278219-May-01 17:17 
QuestionWhat are these messages pointing too?? Pin
19-May-01 15:08
suss19-May-01 15:08 
AnswerRe: What are these messages pointing too?? Pin
Michael Dunn19-May-01 15:49
sitebuilderMichael Dunn19-May-01 15:49 
GeneralExitWindowsEx Pin
19-May-01 12:02
suss19-May-01 12:02 
GeneralWinsock Woes Pin
Stephen Caldwell19-May-01 8:44
Stephen Caldwell19-May-01 8:44 
Generalstatic CArray Pin
derhackler19-May-01 3:41
derhackler19-May-01 3:41 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 7:52
Igor Sukhov19-May-01 7:52 
GeneralRe: static CArray Pin
derhackler19-May-01 7:58
derhackler19-May-01 7:58 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:09
Igor Sukhov19-May-01 8:09 
GeneralRe: static CArray Pin
Igor Sukhov19-May-01 8:11
Igor Sukhov19-May-01 8:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.