[MDEV-3868] windows client compilation issues Created: 2012-11-19  Updated: 2012-11-20  Resolved: 2012-11-20

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.28
Fix Version/s: 5.5.28a

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None

Attachments: Zip Archive mariaDBTest1.zip    

 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



 Comments   
Comment by Vladislav Vaintroub [ 2012-11-20 ]

need a full story.

The minimal example

#include <mysql.h>

int main()
{
return 0;
}

passes for me

Comment by Robert J. Gebis [ 2012-11-20 ]

Simple C++ DLL VS2010

Comment by Vladislav Vaintroub [ 2012-11-20 ]

the installation folder issue is not fixed. There is probably no big harm compared to thw

Comment by Vladislav Vaintroub [ 2012-11-20 ]

no big harm compared to the traditional handling. Since there are no standard hardcoded include directories on Windows, we're unlikely to break existing code. Still would be nice of us to provide cmake module to find MariaDB/MySQL installations

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