Skip to main content
GameDev.net gamedev.net
🔒 Locked

Mysql++

Started by Leadorn Mar 15, 2003 at 8:49 AM 3 replies 550+ views
Original Post
Leadorn
Leadorn
Hi I have some problem with the mysql++ api, i get all kinds of errors. some are bool to int warnings Have anyone tried the 1.7.1 mysql++ libary, and got it working? Im using: MySQL++ 1.7.1 for Microsoft Visual C++ 6.0 (contributed by LazyFox Ive copied the libmySQL.dll to windows\system32 and added: include\, mysql\include, lib\, mysql\lib in visualc++. Tools -> Options / directories ../include\type_info1.hh(39) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) ../include\type_info1.hh(159) : warning C4800: 'unsigned int' : forcing value to bool 'true' or 'false' (performance warning) ../include\type_info1.hh(172) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) ../include\type_info1.hh(176) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) ../include\type_info1.hh(180) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) ../include\type_info1.hh(184) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) ../include\convert1.hh(40) : warning C4273: 'strtol' : inconsistent dll linkage. dllexport assumed. ../include\convert1.hh(41) : warning C4273: 'strtoul' : inconsistent dll linkage. dllexport assumed. ../include\sql_query1.hh(37) : warning C4800: 'class SQLQuery *' : forcing value to bool 'true' or 'false' (performance warning) ../include\sql_query1.hh(135) : warning C4355: 'this' : used in base member initializer list ../include\compare1.hh(48) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) ../include\result1.hh(33) : warning C4355: 'this' : used in base member initializer list ../include\result1.hh(42) : warning C4800: 'char' : forcing value to bool 'true' or 'false' (performance warning) [edited by - leadorn on March 15, 2003 9:50:15 AM]
GravtyKlz
GravtyKlz
It looks like you''re just getting warnings. I''ve heard its typical to get all those warnings with mysql++. I''ve used it for a couple programs and all those times I get the same warnings, but no errors, and my programs ran fine. So you''ve probably done everything fine.
Leadorn
Leadorn
The program runs fine, but its annoying. Somewhere in all those warnings are my errors....
alchemar
alchemar
I did not like the mysql++ so I used the c version
Fruny
Fruny
Warning C4800 - replace thing like bool b = i; with bool b = (i != 0);.

Warning C4327 - Make sure you include <cstring> and not <string.h> and that the headers you use declare the function the same way.

Warning C4355 - Don''t do this !






[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.