Bug 80231 - Error missing binary operator before token "("
Summary: Error missing binary operator before token "("
Status: RESOLVED DUPLICATE of bug 36453
Alias: None
Product: gcc
Classification: Unclassified
Component: preprocessor (show other bugs)
Version: 4.8.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-28 06:08 UTC by Sumit
Modified: 2017-03-28 07:29 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sumit 2017-03-28 06:08:27 UTC
My product is being migrating from GCC 4.4.1 to 4.8.1 and while compiling the existing code with newer tool chain, I am seeing below error :

In file included from /vobs/optnet_comms/comms_applications/3rdparty/appweb/current/src/mpr/mprLib.c:5:0:
/vobs/optnet_comms/comms_applications/3rdparty/appweb/current/src/mpr/mpr.h:207:74: error: missing binary operator before token "("
     #elif (LINUX || ME_BSD_LIKE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
Comment 1 Andrew Pinski 2017-03-28 06:14:02 UTC
Looks like a dup of bug 36453.
Comment 2 Sumit 2017-03-28 06:35:16 UTC
(In reply to Andrew Pinski from comment #1)
> Looks like a dup of bug 36453.

Hi Andrew,

yes I did check that and modified the code like below :

    #elif (LINUX || ME_BSD_LIKE) && defined(KERNEL_VERSION) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))


but no help. Am I doing something wrong here?
Comment 3 Richard Biener 2017-03-28 07:29:23 UTC
The PR suggests you write

 #elif (LINUX || ME_BSD_LIKE) && defined(KERNEL_VERSION)
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
 ...
 #endif

*** This bug has been marked as a duplicate of bug 36453 ***