Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIN32 not defined yet #1676

Closed
matt77hias opened this issue Jul 4, 2019 · 3 comments
Closed

WIN32 not defined yet #1676

matt77hias opened this issue Jul 4, 2019 · 3 comments

Comments

@matt77hias
Copy link
Contributor

matt77hias commented Jul 4, 2019

Hey, I have some possible (as I manually configure MSBuild) compilation on Windows 10 (VS2019).

internal\catch_session.h

#if defined(CATCH_CONFIG_WCHAR) && defined(WIN32) && defined(UNICODE)
        int applyCommandLine( int argc, wchar_t const * const * argv );
#endif

WIN32 is not defined (yet).

internal\catch_session.cpp

#if defined(CATCH_CONFIG_WCHAR) && defined(WIN32) && defined(UNICODE)
    int Session::applyCommandLine( int argc, wchar_t const * const * argv ) {
...
    }
#endif

WIN32 is defined.

Solution: move #include "catch_windows_h_proxy.h" before "#include "catch_session.h".

I am running the trunk version.

@horenmar
Copy link
Member

horenmar commented Jul 6, 2019

Upon closer inspection, the macro used should _WIN32, but given the other issues you've opened, it seems that your build is fundamentally broken.

@JoeyGrajciar
Copy link
Contributor

Are you including header from single_include/catch2 folder? or from include folder?

@matt77hias
Copy link
Contributor Author

matt77hias commented Jul 6, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants