[MDEV-3754] LP:808233 - Default Int or undefined uint in typelib.h Created: 2011-07-10 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | eadthem akip (Inactive) | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| 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 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_or_exit(const char *x, TYPELIB *typelib, The compiler error messages are d:\mariadb\include\typelib.h(32) : error C2146: syntax error : missing ';' before identifier 'find_type_or_exit' the fix is extern unsigned int find_type_or_exit(const char *x, TYPELIB *typelib, eadthem |
| Comments |
| Comment by Vladislav Vaintroub [ 2011-07-10 ] |
|
Re: Default Int or undefined uint in typelib.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. |
| Comment by eadthem akip (Inactive) [ 2011-07-10 ] |
|
Re: Default Int or undefined uint in typelib.h d:\mariadb\include\my_global.h(605) : fatal error C1083: Cannot open include file: 'my_valgrind.h': No such file or directory i was not able to find my_valgrind.h in any of the noinstall zips for windows. i also had to change my inclusion of winsock.h to winsock2.h in my applcation as winsock.h was causing redefinition issues once my_global.h was included. I pulled my_valgrind.h out of the source tarball for 5.2.4 , placed it in the /include/ folder and received the following error messages. ------------------------------------------------------------------------ and the same action for 5.2.7 yealds. ------------------------------------------------------------------------ thanks eadthem |
| Comment by Vladislav Vaintroub [ 2011-07-10 ] |
|
Re: Default Int or undefined uint in typelib.h The rest of the errors are mostly likely due to extern "C" somewhere in your code, prior to inclusion of my_global.h . It does not play well inside my_compiler.h , in #ifdef __cplusplus block. |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 808233 |