SpareSimian

Results 53 comments of SpareSimian

For reference: https://github.com/MicrosoftDocs/cpp-docs/blob/main/docs/preprocessor/preprocessor-experimental-overview.md

I extracted the relevant parts of the wx headers to create a reproducible example and then did a divide-and-conquer to narrow down what's wrong. The most important issue is that...

I'm running my script to rebuild debug/release, 32/64, and MSVC versions 2010/2013/2015/2019, using nmake. I injected "CPPFLAGS=/Zc:preprocessor" on the nmake command line. So far no problems from setup.h. I'm seeing...

Ignore my previous comment, I seem to not be getting the PR in my checkout, I'm trying to hunt down what I did wrong.

Ok, using the correct branch, my VS2019 x64 debug code now builds and runs properly with the PR.

Here's someone who's forked gnutls to build it with VS. See the SMP directory for the Windows build instructions. https://github.com/ShiftMediaProject/gnutls

The macros are defined here: https://github.com/wxWidgets/wxWidgets/blob/master/include/wx/cpp.h They're used to insert the "#pragma comment" to automatically pull in the correct library (based on compiler version and options) here: https://github.com/wxWidgets/wxWidgets/blob/master/include/msvc/wx/setup.h

Boost does the same thing here: https://github.com/boostorg/config/blob/develop/include/boost/config/auto_link.hpp

Interesting. My test case was an attempt to simplify the wxWidgets case that was failing for me, and I simplified it too much.

Woops, I see a pull request for this: https://github.com/DanielAdolfsson/ndppd/pull/65