interprocess icon indicating copy to clipboard operation
interprocess copied to clipboard

compile issue with vs 2019 preview with managed_shared_memory.hpp

Open vautieri opened this issue 4 years ago • 1 comments

Two issues...

interprocess\detail\win32_api.hpp(1491): error C2143: syntax error: missing ')' before 'module'

which is inline bool free_library(hmodule module) { return 0 != FreeLibrary(module); }

if I rename "module" in the complete file to something like "modulein", I get past this. Not sure why module is defined already to something that acts as a keyword.

then once you get past that, issue 2, unicode is getting mixed with char , so you get build errors here as winapi::unlink_file is char. This is just one of many examples.

inline bool delete_file(const wchar_t *namein) { return winapi::unlink_file(namein); }

I was trying to use boost 1.71.0 as supposedly 2019 can build interprocess code, which mine did not (probably because the the "module" word acting like a keyword, so I went to 1.76.0. So I started to debug on this version which is what I've documented above.

vautieri avatar Jun 10 '21 20:06 vautieri

I could not reproduce your problem, can you provide a minimal example and the compilation flags you are using on VS2019?

igaztanaga avatar Aug 09 '21 21:08 igaztanaga

Closing the issue as there was no further info.

igaztanaga avatar Oct 03 '24 08:10 igaztanaga