[ODBC-357] mariadb-connector-odbc-master - Error missing character Created: 2022-03-25  Updated: 2022-05-30  Resolved: 2022-05-30

Status: Closed
Project: MariaDB Connector/ODBC
Component/s: General
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Critical
Reporter: Anitha subbu Assignee: Lawrin Novitsky
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Windows



 Description   

Hi Team,

we are newly migrating the maria DB (10.5.13) and to compile some of c to dll file, we are using Visual studio 2015 for compilation and copied the following files from 2 different location,

mariadb-connector-odbc-master : for ma_odbc.h File and supporting files.
MariaDB ODBC Driver 64-bit : for maodbc.lib file

Both patched under our code and tried to run the build. getting following errors.

C:\Sybase\dbencrypt\ma_odbc.h(364): error C2061: syntax error: identifier 'MARIADB_CHARSET_INFO'
1>C:\Sybase\dbencrypt\ma_odbc.h(365): error C2059: syntax error: '}'
1>C:\Sybase\dbencrypt\ma_odbc.h(373): error C2061: syntax error: identifier 'Client_Charset'
1>C:\Sybase\dbencrypt\ma_odbc.h(379): error C2143: syntax error: missing '

{' before '*' 1>C:\Sybase\dbencrypt\ma_odbc.h(411): error C2059: syntax error: '}

'
1>C:\Sybase\dbencrypt\ma_odbc.h(427): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(427): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(427): error C2059: syntax error: 'type'
1>C:\Sybase\dbencrypt\ma_odbc.h(427): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_odbc.h(428): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(428): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(428): error C2143: syntax error: missing ';' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(428): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_odbc.h(429): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(429): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_odbc.h(429): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_environment.h(29): error C2061: syntax error: identifier 'SourceAnsiCs'
1>C:\Sybase\dbencrypt\ma_environment.h(29): error C2059: syntax error: ';'
1>C:\Sybase\dbencrypt\ma_string.h(22): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(22): error C2081: 'Client_Charset': name in formal parameter list illegal
1>C:\Sybase\dbencrypt\ma_string.h(22): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(22): error C2370: 'BOOL': redefinition; different storage class
1> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\include\windef.h(153): note: see declaration of 'BOOL'
1>C:\Sybase\dbencrypt\ma_string.h(22): error C2143: syntax error: missing ';' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(22): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_string.h(23): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(23): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(23): error C2059: syntax error: 'type'
1>C:\Sybase\dbencrypt\ma_string.h(25): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_string.h(35): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(35): error C2081: 'Client_Charset': name in formal parameter list illegal
1>C:\Sybase\dbencrypt\ma_string.h(35): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(35): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_string.h(36): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(36): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(36): error C2059: syntax error: 'type'
1>C:\Sybase\dbencrypt\ma_string.h(37): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_string.h(40): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(40): error C2081: 'MARIADB_CHARSET_INFO': name in formal parameter list illegal
1>C:\Sybase\dbencrypt\ma_string.h(40): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(40): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_string.h(41): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(41): error C2081: 'MARIADB_CHARSET_INFO': name in formal parameter list illegal
1>C:\Sybase\dbencrypt\ma_string.h(41): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_string.h(41): error C2059: syntax error: ')'
1>C:\Sybase\dbencrypt\ma_helper.h(47): error C2143: syntax error: missing ')' before '*'
1>C:\Sybase\dbencrypt\ma_helper.h(47): error C2081: 'MARIADB_CHARSET_INFO': name in formal parameter list illegal
1>C:\Sybase\dbencrypt\ma_helper.h(47): error C2143: syntax error: missing '{' before '*'
1>C:\Sybase\dbencrypt\ma_helper.h(47): error C2059: syntax error: ')'

I am unable to solve this kindly help or kindly point me the correct version.



 Comments   
Comment by Anitha subbu [ 2022-03-25 ]

Is i connected a worng version or kindly help me to fix the issues.

Comment by Lawrin Novitsky [ 2022-05-30 ]

Hello.
Sorry, I don't quite understand, what are you trying to do, but if you are building our C/ODBC - it looks like compilation error, and then it looks like you are missing C/C headers, where MARIADB_CHARSET_INFO is defined.
I am closing this, as is does not look like a bug report. You are free to comment/re-open, if you think differently or if I am missing something

Generated at Thu Feb 08 03:28:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.