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

Error C2146 and error C4430 in benchmark_runner.cc(62). #853

Closed
joe2018Outlookcom opened this issue Aug 21, 2019 · 4 comments
Closed

Error C2146 and error C4430 in benchmark_runner.cc(62). #853

joe2018Outlookcom opened this issue Aug 21, 2019 · 4 comments

Comments

@joe2018Outlookcom
Copy link

Microsoft (R) C/C++ Optimizing Compiler Version 18.00.40629 for x86 error messages :
src\benchmark_runner.cc(62): error C2146: syntax error : missing ';' before identifier 'IterationCount'
src\benchmark_runner.cc(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Annotation 2019-08-21 112221
Here is the point:

static constexpr IterationCount kMaxIterations = 1000000000;

The suggestion is to replace ‘constexpr’ with 'const'.

joe2018Outlookcom added a commit to joe2018Outlookcom/benchmark that referenced this issue Aug 21, 2019
Replace ‘constexpr’ with 'const', for Visual Studio 2013.
Fixes google#853
CLA: trivial
@EricWF
Copy link
Contributor

EricWF commented Aug 21, 2019 via email

@joe2018Outlookcom
Copy link
Author

However, it's ture (in Visual Studio 2013 Update 5).
https://github.com/google/benchmark/blob/master/README.md#requirements

@EricWF
Copy link
Contributor

EricWF commented Aug 21, 2019 via email

LebedevRI added a commit that referenced this issue Aug 21, 2019
VS2013 is unsupported since #691 / eb8cbec
but i forgot to update docs.
References:
* #689
* #691
* google/googletest#1815
* #853
* #854
@LebedevRI
Copy link
Collaborator

Sorry about that, fixed docs in 3523f11.

JBakamovic pushed a commit to JBakamovic/benchmark that referenced this issue Sep 11, 2020
VS2013 is unsupported since google#691 / google@eb8cbec
but i forgot to update docs.
References:
* google#689
* google#691
* google/googletest#1815
* google#853
* google#854
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants