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

macro name collision with google log #157

Closed
xgdgsc opened this issue Sep 23, 2018 · 1 comment
Closed

macro name collision with google log #157

xgdgsc opened this issue Sep 23, 2018 · 1 comment

Comments

@xgdgsc
Copy link

xgdgsc commented Sep 23, 2018

Description

Is there a way to use this properly together with google log? I get warnings like 'CHECK' macro redefined ,'CHECK_EQ' macro redefined .

And error like:

  ' error: no member named 'DOCTEST_INFO' in namespace 'google'
  google::FlushLogFiles(google::INFO);
                        ~~~~~~~~^

when I include the doctest header.

Steps to reproduce

#include "doctest.h"

and use some google log macro.

Extra information

  • doctest version: v2.0.0
  • Operating System: manjaro/ubuntu
  • Compiler+version: *clang 6.0.1
@xgdgsc
Copy link
Author

xgdgsc commented Sep 24, 2018

Oh. I found the option #define DOCTEST_CONFIG_NO_SHORT_MACRO_NAMES , thanks!

@xgdgsc xgdgsc closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant