Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-53

Compiler errors while compiling a program with client library revision 90

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Windows

    Description

      I get the following errors while compiling my program.

      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(41): error C2146: syntax error : missing ';' before identifier 'nr'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(42): error C2146: syntax error : missing ';' before identifier 'state'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(47): error C2146: syntax error : missing ';' before identifier 'char_minlen'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(47): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(47): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(48): error C2146: syntax error : missing ';' before identifier 'char_maxlen'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49): error C2059: syntax error : '*'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49): error C2061: syntax error : identifier 'uint'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49): error C2091: function returns function
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49): warning C4183: 'uint': missing return type; assumed to be a member function returning 'int'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(50): error C2059: syntax error : '*'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(50): error C2091: function returns function
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(50): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(50): error C2556: 'int (_cdecl *charset_info_st::uint(void))(const char *,const char *)' : overloaded function differs only by return type from 'int (_cdecl *charset_info_st::uint(void))(void)'
      1> c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49) : see declaration of 'charset_info_st::uint'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(50): error C2371: 'charset_info_st::uint' : redefinition; different basic types
      1> c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(49) : see declaration of 'charset_info_st::uint'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(50): warning C4183: 'uint': missing return type; assumed to be a member function returning 'int'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(59): error C2065: 'uint' : undeclared identifier
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(59): error C2146: syntax error : missing ')' before identifier 'cs_number'
      1>c:\users\xyz\documents\mariadb_test\mysql\m_ctype.h(59): error C2059: syntax error : ')'
      1>c:\users\xyz\documents\mariadb_test\mysql\mysql.h(454): error C2065: 'uint' : undeclared identifier
      1>c:\users\xyz\documents\mariadb_test\mysql\mysql.h(454): error C2146: syntax error : missing ')' before identifier 'csnr'
      1>c:\users\xyz\documents\mariadb_test\mysql\mysql.h(454): warning C4229: anachronism used : modifiers on data are ignored
      1>c:\users\xyz\documents\mariadb_test\mysql\mysql.h(454): error C2059: syntax error : ')'
      1>c:\users\xyz\documents\mariadb_test\mariadb_test.cpp(108): fatal error C1075: end of file found before the left brace '{'

      Replacing "uint" to "unsigned int" in m_ctype.h , mysql.h and closing a brace in m_ctype.h fixes these errors and the program compiles successfully.

      Attachments

        Activity

          People

            georg Georg Richter
            Sudhindra Bhat Sudhindra Bhat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.