[MDEV-12149] Connect SE: compile errors on Windows with /Zc:strictStrings Created: 2017-02-28  Updated: 2022-09-12  Resolved: 2022-09-12

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Affects Version/s: 10.0
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Olivier Bertrand
Resolution: Won't Fix Votes: 0
Labels: None

Attachments: Text File connect_zc_strict_strings.txt    
Issue Links:
Relates
relates to MDEV-12148 Sphinx : compile error with /Zc:stric... Closed

 Description   

When compilng Connect engine on Windows, with VS2015 and option /Zc:strictStrings, the compilation fails with
errors about converting const char[N] to char *

To reproduce, run cmake with

cmake . -DCMAKE_CXX_FLAGS=/Zc:strictStrings

strictStrings might be made default option in the future.

I attached errors of compilation attempt.

See related bug in MySQL https://bugs.mysql.com/bug.php?id=85157
Below are the 10.0 errors.



 Comments   
Comment by Olivier Bertrand [ 2017-05-07 ]

After hopefully eliminated all problems related to /Zc:strictStrings the compilation of connect still fails because of the included system file:

C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\um\wbemdisp.h

Comment by Sergei Golubchik [ 2022-09-12 ]

10.0 was EOLed in March 2019

Generated at Thu Feb 08 07:55:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.