Default Int or undefined uint in typelib.h
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Medium
|
Vladislav Vaintroub |
Bug Description
When trying to build a client application against the mariaDB 5.2.4 or 5.2.7 library the compiler complains about undefined uint in the line.
my system info
windows XP pro 32bit
mariaDB 5.2.7 and 5.2.4 noinstall zip's tested and same results occur on both visual c++ 2005 and visual c++2010
with 5.2.4 and 5.2.7
If this builds on nix or with a C compiler it because assumes its a int (default int) then that could be another issue as well, as uint would say to me that its suppose to be a unsigned int.
The error occurs on the line 32 and 33 of typelib.h
extern uint find_type_
The compiler error messages are
d:\mariadb\
d:\mariadb\
d:\mariadb\
the fix is
extern unsigned int find_type_
eadthem
Changed in maria: | |
assignee: | nobody → Vladislav Vaintroub (wlad-montyprogram) |
Changed in maria: | |
status: | Fix Committed → Fix Released |
I fixed it in 5.1 upwards. The workaround is to include my_global. h
"If this builds on nix or with a C compiler it because assumes its a int (default int) then that could be another issue as well, as uint would say to me that its suppose to be a unsigned int."
Would not build with C compiler either, unless uint is defined (C4430 is followup error, the real one is C2146)
On Unixes, uint is often be typedefed in system headers, thus it builds.