MSVC 2019 compiler errors when using Boost.Process and Boost.Interprocess
- Dominant language
- C++
- Stars
- 145
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
Microsoft Visual Studio Community 2019, Version 16.6.1.
boost 1.70.0
Compilation of the following program fails:
```
#include
#include
int main()
{
return 0;
}
```
...with these errors:
```
1>------ Build started: Project: boost_interprocess_vs_boost_process, Configuration: Debug x64 ------
1>boost_interprocess_vs_boost_process_main.cpp
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(54,1): error C2116: 'boost::interprocess::winapi::CreateFileA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(931): message : see declaration of 'boost::interprocess::winapi::CreateFileA'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(54,1): error C2733: 'CreateFileA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(931,51): message : see declaration of 'boost::interprocess::winapi::CreateFileA'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(65,1): error C2116: 'boost::interprocess::winapi::FindFirstFileA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(915): message : see declaration of 'boost::interprocess::winapi::FindFirstFileA'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(65,1): error C2733: 'FindFirstFileA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(915,50): message : see declaration of 'boost::interprocess::winapi::FindFirstFileA'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(68,1): error C2116: 'boost::interprocess::winapi::FindNextFileA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(916): message : see declaration of 'boost::interprocess::winapi::FindNextFileA'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(68,1): error C2733: 'FindNextFileA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(916,50): message : see declaration of 'boost::interprocess::winapi::FindNextFileA'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(90,1): error C2116: 'boost::interprocess::winapi::GetFileInformationByHandle': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(963): message : see declaration of 'boost::interprocess::winapi::GetFileInformationByHandle'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(90,1): error C2733: 'GetFileInformationByHandle': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(963,50): message : see declaration of 'boost::interprocess::winapi::GetFileInformationByHandle'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(103,1): error C2116: 'boost::interprocess::winapi::LockFileEx': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(953): message : see declaration of 'boost::interprocess::winapi::LockFileEx'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(103,1): error C2733: 'LockFileEx': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(953,48): message : see declaration of 'boost::interprocess::winapi::LockFileEx'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(127,1): error C2116: 'boost::interprocess::winapi::UnlockFileEx': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(954): message : see declaration of 'boost::interprocess::winapi::UnlockFileEx'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(127,1): error C2733: 'UnlockFileEx': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(954,48): message : see declaration of 'boost::interprocess::winapi::UnlockFileEx'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(160,1): error C2116: 'boost::interprocess::winapi::ReadFile': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(956): message : see declaration of 'boost::interprocess::winapi::ReadFile'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(160,1): error C2733: 'ReadFile': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(956,48): message : see declaration of 'boost::interprocess::winapi::ReadFile'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(171,1): error C2116: 'boost::interprocess::winapi::WriteFile': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(955): message : see declaration of 'boost::interprocess::winapi::WriteFile'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(171,1): error C2733: 'WriteFile': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(955,48): message : see declaration of 'boost::interprocess::winapi::WriteFile'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(189,1): error C2116: 'boost::interprocess::winapi::GetFileSizeEx': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(937): message : see declaration of 'boost::interprocess::winapi::GetFileSizeEx'
1>C:\Boost\boost_1_70_0\boost\winapi\file_management.hpp(189,1): error C2733: 'GetFileSizeEx': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(937,48): message : see declaration of 'boost::interprocess::winapi::GetFileSizeEx'
1>Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
1>- add -D_WIN32_WINNT=0x0601 to the compiler command line; or
1>- add _WIN32_WINNT=0x0601 to your project's Preprocessor Definitions.
1>Assuming _WIN32_WINNT=0x0601 (i.e. Windows 7 target).
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(59,1): error C2116: 'boost::interprocess::winapi::CreateDirectoryA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(944): message : see declaration of 'boost::interprocess::winapi::CreateDirectoryA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(59,1): error C2733: 'CreateDirectoryA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(944,48): message : see declaration of 'boost::interprocess::winapi::CreateDirectoryA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(690,1): error C2371: 'boost::interprocess::winapi::GetFileType': redefinition; different basic types
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(914): message : see declaration of 'boost::interprocess::winapi::GetFileType'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(690,1): error C2733: 'GetFileType': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(914,49): message : see declaration of 'boost::interprocess::winapi::GetFileType'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(1150,1): error C2116: 'boost::interprocess::winapi::SetFilePointerEx': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(950): message : see declaration of 'boost::interprocess::winapi::SetFilePointerEx'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(1150,1): error C2733: 'SetFilePointerEx': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(950,48): message : see declaration of 'boost::interprocess::winapi::SetFilePointerEx'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(1462,1): error C2371: 'boost::interprocess::winapi::GetTempPathA': redefinition; different basic types
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(946): message : see declaration of 'boost::interprocess::winapi::GetTempPathA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\fileapi.h(1462,1): error C2733: 'GetTempPathA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(946,48): message : see declaration of 'boost::interprocess::winapi::GetTempPathA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\synchapi.h(428,1): error C2116: 'boost::interprocess::winapi::CreateMutexA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(920): message : see declaration of 'boost::interprocess::winapi::CreateMutexA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\synchapi.h(428,1): error C2733: 'CreateMutexA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(920,51): message : see declaration of 'boost::interprocess::winapi::CreateMutexA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\processthreadsapi.h(106,1): error C2116: 'boost::interprocess::winapi::GetProcessTimes': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(898): message : see declaration of 'boost::interprocess::winapi::GetProcessTimes'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\processthreadsapi.h(106,1): error C2733: 'GetProcessTimes': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(898,48): message : see declaration of 'boost::interprocess::winapi::GetProcessTimes'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\sysinfoapi.h(95,1): error C2116: 'boost::interprocess::winapi::GetSystemInfo': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(932): message : see declaration of 'boost::interprocess::winapi::GetSystemInfo'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\sysinfoapi.h(95,1): error C2733: 'GetSystemInfo': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(932,49): message : see declaration of 'boost::interprocess::winapi::GetSystemInfo'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\memoryapi.h(273,1): error C2116: 'boost::interprocess::winapi::FlushViewOfFile': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(933): message : see declaration of 'boost::interprocess::winapi::FlushViewOfFile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\memoryapi.h(273,1): error C2733: 'FlushViewOfFile': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(933,48): message : see declaration of 'boost::interprocess::winapi::FlushViewOfFile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\memoryapi.h(282,1): error C2116: 'boost::interprocess::winapi::UnmapViewOfFile': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(924): message : see declaration of 'boost::interprocess::winapi::UnmapViewOfFile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\memoryapi.h(282,1): error C2733: 'UnmapViewOfFile': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(924,48): message : see declaration of 'boost::interprocess::winapi::UnmapViewOfFile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(186,1): error C2116: 'boost::interprocess::winapi::FreeLibrary': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(960): message : see declaration of 'boost::interprocess::winapi::FreeLibrary'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(186,1): error C2733: 'FreeLibrary': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(960,50): message : see declaration of 'boost::interprocess::winapi::FreeLibrary'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(260,1): error C2371: 'boost::interprocess::winapi::GetModuleHandleA': redefinition; different basic types
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(962): message : see declaration of 'boost::interprocess::winapi::GetModuleHandleA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(260,1): error C2733: 'GetModuleHandleA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(962,52): message : see declaration of 'boost::interprocess::winapi::GetModuleHandleA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(342,1): error C2116: 'boost::interprocess::winapi::GetProcAddress': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(961): message : see declaration of 'boost::interprocess::winapi::GetProcAddress'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(342,1): error C2733: 'GetProcAddress': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(961,54): message : see declaration of 'boost::interprocess::winapi::GetProcAddress'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(663,1): error C2371: 'boost::interprocess::winapi::LoadLibraryA': redefinition; different basic types
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(959): message : see declaration of 'boost::interprocess::winapi::LoadLibraryA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\libloaderapi.h(663,1): error C2733: 'LoadLibraryA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(959,52): message : see declaration of 'boost::interprocess::winapi::LoadLibraryA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\securitybaseapi.h(1054,1): error C2116: 'boost::interprocess::winapi::InitializeSecurityDescriptor': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(957): message : see declaration of 'boost::interprocess::winapi::InitializeSecurityDescriptor'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\securitybaseapi.h(1054,1): error C2733: 'InitializeSecurityDescriptor': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(957,48): message : see declaration of 'boost::interprocess::winapi::InitializeSecurityDescriptor'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\securitybaseapi.h(1390,1): error C2116: 'boost::interprocess::winapi::SetSecurityDescriptorDacl': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(958): message : see declaration of 'boost::interprocess::winapi::SetSecurityDescriptorDacl'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\securitybaseapi.h(1390,1): error C2733: 'SetSecurityDescriptorDacl': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(958,48): message : see declaration of 'boost::interprocess::winapi::SetSecurityDescriptorDacl'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(3098,1): error C2116: 'boost::interprocess::winapi::CreateSemaphoreA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(925): message : see declaration of 'boost::interprocess::winapi::CreateSemaphoreA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(3098,1): error C2733: 'CreateSemaphoreA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(925,51): message : see declaration of 'boost::interprocess::winapi::CreateSemaphoreA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(3208,1): error C2116: 'boost::interprocess::winapi::CreateFileMappingA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(928): message : see declaration of 'boost::interprocess::winapi::CreateFileMappingA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(3208,1): error C2733: 'CreateFileMappingA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(928,51): message : see declaration of 'boost::interprocess::winapi::CreateFileMappingA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winreg.h(212,1): error C2116: 'boost::interprocess::winapi::RegCloseKey': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(968): message : see declaration of 'boost::interprocess::winapi::RegCloseKey'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winreg.h(212,1): error C2733: 'RegCloseKey': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(968,49): message : see declaration of 'boost::interprocess::winapi::RegCloseKey'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winreg.h(692,1): error C2116: 'boost::interprocess::winapi::RegOpenKeyExA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(966): message : see declaration of 'boost::interprocess::winapi::RegOpenKeyExA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winreg.h(692,1): error C2733: 'RegOpenKeyExA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(966,49): message : see declaration of 'boost::interprocess::winapi::RegOpenKeyExA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winreg.h(848,1): error C2116: 'boost::interprocess::winapi::RegQueryValueExA': function parameter lists do not match between declarations
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(967): message : see declaration of 'boost::interprocess::winapi::RegQueryValueExA'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winreg.h(848,1): error C2733: 'RegQueryValueExA': you cannot overload a function with 'extern "C"' linkage
1>C:\Boost\boost_1_70_0\boost\interprocess\detail\win32_api.hpp(967,49): message : see declaration of 'boost::interprocess::winapi::RegQueryValueExA'
1>C:\Boost\boost_1_70_0\boost\process\detail\windows\wait_group.hpp(30,70): warning C4244: 'argument': conversion from 'std::chrono::system_clock::rep' to 'boost::winapi::DWORD_', possible loss of data
1>Done building project "boost_interprocess_vs_boost_process.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.