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

GNU PREREQ Error with gcc 9.3.0 #2015

Closed
Bose90 opened this issue Mar 26, 2020 · 3 comments
Closed

GNU PREREQ Error with gcc 9.3.0 #2015

Bose90 opened this issue Mar 26, 2020 · 3 comments
Labels
kind: question solution: invalid the issue is not related to the library

Comments

@Bose90
Copy link

Bose90 commented Mar 26, 2020

  • Describe what you want to achieve.
    I am trying to run some production code with gcc 9.3.0 in Cygwin(64bit) and want to get it compile successfully. My same code runs fine with gcc version 4.8.x, but not with the latest gcc version.
    Below error i am getting continously in cygwin console.
    /usr/include/_ansi.h:24:19: error: missing binary operator before token "("
    24 | #if __GNUC_PREREQ (3, 3)
    | ^
    /usr/include/_ansi.h:72:19: error: missing binary operator before token "("
    72 | #if __GNUC_PREREQ (3, 1)
  • Describe what you tried.
    i have tried many ways and even searched in google to fix that issue, but nothing helped me.
  • Describe which system (OS, compiler) you are using.
    I have windows 10 machine with 64bit Cygwin and gcc/g++ installed is 9.3.0 version.
  • Describe which version of the library you are using (release version, develop branch).
    gcc - 9.3.0
    g++ 9.3.0
    please help me, it's been 10days i am trying every way to fix this
@dota17
Copy link
Contributor

dota17 commented Mar 28, 2020

Maybe one of your head file name in your code is the same as the name of a file in the gcc 9.3.0 in Cygwin.

@Bose90
Copy link
Author

Bose90 commented Mar 30, 2020

thanks :) .. there's one more error i am encoutering
Error"../../../../ut/CppUTest/include/CppUTestExt/MockSupport.h:40: error: default argument for ‘MockFailureReporter* failureReporterForThisCall’ has type ‘void*’

Here's the Prototype of function
MockSupport& mock(const SimpleString& mockName = "", MockFailureReporter* failureReporterForThisCall = NULL);

Defination
MockSupport& mock(const SimpleString& mockName, MockFailureReporter* failureReporterForThisCall)
{
MockSupport& mock_support = (mockName != "") ? *global_mock.getMockSupportScope(mockName) : global_mock;
mock_support.setActiveReporter(failureReporterForThisCall);
return mock_support;
}

MockSupport::MockSupport()
: strictOrdering_(false), standardReporter_(&defaultReporter_), ignoreOtherCalls_(false), enabled_(true), lastActualFunctionCall_(NULL), tracing_(false)
{
setActiveReporter(NULL);
}

MockSupport::~MockSupport()
{
}
I am totally clue less what's this error is ?

@nlohmann
Copy link
Owner

I can see no connection to this library.

@nlohmann nlohmann added the solution: invalid the issue is not related to the library label Apr 4, 2020
@nlohmann nlohmann closed this as completed Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: invalid the issue is not related to the library
Projects
None yet
Development

No branches or pull requests

3 participants