Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
5.5.28
-
None
-
None
Description
1
An error (only with MariaDB, not with MySQL)
c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage
supposedly caused by our mysql_com.h including ws2tcpip.h. This only happens if the client does not include my_global.h before mysql.h
2
Headers are in C:\Program Files\MySQL\MySQL Server 5.5-MYSQL\include but in C:\Program Files\MySQL\MySQL Server 5.5-MariaDB\include\mysql
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
An error (only with MariaDB, not with MySQL) {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}} supposedly caused by our mysql_com.h including ws2tcpip.h |
An error (only with MariaDB, not with MySQL) {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}} supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}} |
Description |
An error (only with MariaDB, not with MySQL) {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}} supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}} |
An error (only with MariaDB, not with MySQL) {panel} {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}} {panel} supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}} |
Description |
An error (only with MariaDB, not with MySQL) {panel} {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}} {panel} supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}} |
h5. 1 An error (only with MariaDB, not with MySQL) {panel} {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}} {panel} supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}} h5. 2 Headers are in {{C:\Program Files\MySQL\MySQL Server 5.5-MYSQL\include}} but in {{C:\Program Files\MySQL\MySQL Server 5.5-MariaDB\include\mysql}} |
Attachment | mariaDBTest1.zip [ 20100 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | defaullt [ 25301 ] | MariaDB v2 [ 45957 ] |
Workflow | MariaDB v2 [ 45957 ] | MariaDB v3 [ 66643 ] |
Workflow | MariaDB v3 [ 66643 ] | MariaDB v4 [ 146207 ] |
need a full story.
The minimal example
#include <mysql.h>
int main()
{
return 0;
}
passes for me