Skip to content
New issue

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

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

Already on GitHub? # to your account

MSVC Compilation error #87

Open
crackedmind opened this issue Aug 2, 2019 · 4 comments
Open

MSVC Compilation error #87

crackedmind opened this issue Aug 2, 2019 · 4 comments
Labels

Comments

@crackedmind
Copy link

  • cppast version: 55221f1
  • parser: libclang_parser
  • clang version: 8.0

Can't compile cppast using MS VC++ compiler versions: 19.16, 19.21, 19.22.

Input flags:
cmake -B build -S. -GNinja -DCMAKE_BUILD_TYPE=Release -DLIBCLANG_LIBRARY=F:\llvm8\lib\libclang.lib
Output:

\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(245) : error C2220: warning treated as error - no 'object' file generated
\cppast\external\type_safe\external\debug_assert\debug_assert.hpp(245) : warning C4702: unreachable code

It's not really related to cppast, but flag /WX affected cppast compilation.

@Silveryard
Copy link

Same problem here. CMAKE_BUILD_TYPE Debug seems to work for me but the others fail.

@Epixu
Copy link

Epixu commented Aug 19, 2019

Had the same problem recently, it's a speculation, but I think it is due to a lack of
-DDEBUG_ASSERT_DISABLE in release builds. Hope that's useful.

@ghost
Copy link

ghost commented Sep 4, 2019

Same problem

@ghost
Copy link

ghost commented Sep 4, 2019

Fixed with /WX- options

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants