The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Development Releases: Linux Mint 4.0 Beta "Fluxbox", 4.0 Alpha "Debian" iBot UNIX and Linux RSS News 0 01-04-2008 03:00 PM
Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`" Lokesha UNIX for Dummies Questions & Answers 4 12-20-2007 01:52 AM
SuSe Linux: graphics file "(hd0,8)/boot/message" missing mahatma SuSE 3 10-19-2006 10:29 PM
compiled binary file gives "cannot execute binary file" scgupta SUN Solaris 0 07-13-2006 01:59 AM
No utpmx entry: you must exec "login" from lowest level "shell" peterpan UNIX for Dummies Questions & Answers 0 01-18-2006 04:15 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-07-2008
mannam srinivas mannam srinivas is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 30
Thumbs up missing binary operator before token "("

Hello every one,

how are u doing?

my macine has following os:
=====================
Linux 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

here i am trying to compile a c++ project.i am getting the following error.


error:
=======

Generating IMPORT_IDL... .h cstub sstub
from /root/cc/unix-ce/root/subsys/idl/cdbo_0000.idl
(cd /root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux/; /opt/dce/bin/idl -keep all -I/root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux/ -I/root/cc/unix-ce/root/subsys/lib/Linux -I/root/cc/unix-ce/root/subsys/cb/cdbg/idl -I/root/cc/unix-ce/root/subsys/cb/cdbg/include -I/root/cc/unix-ce/root/subsys/idl -I/root/cc/unix-ce/root/subsys/include -I/opt/dce/include -I/opt/dce/include/dce -DUSE_FREE_DCE -I/opt/dce/include -DLINUX -DUSE_SHADOW -DUCE_SSH -DIDL_CHAR_IS_CHAR -D_REENTRANT /root/cc/unix-ce/root/subsys/idl/cdbo_0000.idl)

Create /root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux//cdbg_CDBSP_config.dep from cdbg_CDBSP_config.cc
/usr/bin/c++ -M -g -DDEBUG -DMAT -I//root/cc/unix-ce/mvfs/3pp/rogueTools.h/v7.0.3/ -I/root/cc/unix-ce/root/subsys/cb/cdbg/src -I/root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux/ -I/root/cc/unix-ce/root/subsys/lib/Linux -I/root/cc/unix-ce/root/subsys/cb/cdbg/include -I/root/cc/unix-ce/root/subsys/include -I/opt/dce/include -I/opt/dce/include/dce -DUSE_FREE_DCE -I/root/cc/unix-ce/root/3pp/include/Linux -D_GNU_SOURCE -DLINUX -DUSE_SHADOW -DUCE_SSH -DIDL_CHAR_IS_CHAR -D_REENTRANT -fsigned-char -DCXX_VERSION=4.1.2 -DRW_MULTI_THREAD -DSNACC_DEEP_COPY -DSWP_CDBG_CompSched_csvON cdbg_CDBSP_config.cc > /root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux//cdbg_CDBSP_config.dep

Create /root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux//cdbg_COMPSP_cdbRS.dep from cdbg_COMPSP_cdbRS.C
/usr/bin/c++ -M -g -DDEBUG -DMAT -I//root/cc/unix-ce/mvfs/3pp/rogueTools.h/v7.0.3/ -I/root/cc/unix-ce/root/subsys/cb/cdbg/src -I/root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux/ -I/root/cc/unix-ce/root/subsys/lib/Linux -I/root/cc/unix-ce/root/subsys/cb/cdbg/include -I/root/cc/unix-ce/root/subsys/include -I/opt/dce/include -I/opt/dce/include/dce -DUSE_FREE_DCE -I/root/cc/unix-ce/root/3pp/include/Linux -D_GNU_SOURCE -DLINUX -DUSE_SHADOW -DUCE_SSH -DIDL_CHAR_IS_CHAR -D_REENTRANT -fsigned-char -DCXX_VERSION=4.1.2 -DRW_MULTI_THREAD -DSNACC_DEEP_COPY -DSWP_CDBG_CompSched_csvON cdbg_COMPSP_cdbRS.C > /root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux//cdbg_COMPSP_cdbRS.dep
cdbg_COMPSP_cdbRS.C:25:45: error: missing binary operator before token "("*** Error code 1[/color]clearmake: Error: Build script failed for "/root/cc/unix-ce/root/subsys/cb/cdbg/obj_CompSched_csvON/Linux//cdbg_COMPSP_cdbRS.dep"
================================================== ========

in line number 25 i had the following code
==================================
#if defined (HAVE_GCC) && (HAVE_GCC_VERSION)(3,2)

I have googled to get the solution ,many people got this kind of error but i haven't find any solution to this error.

pls can some of you help me regarding this.

with regards
Srinivas mannam
  #2 (permalink)  
Old 08-07-2008
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
Quote:
Originally Posted by mannam srinivas View Post
in line number 25 i had the following code
==================================
#if defined (HAVE_GCC) && (HAVE_GCC_VERSION)(3,2)
Here is something from /usr/include/ansidecl.h. Adapt it for your project.

Code:
/* Using MACRO(x,y) in cpp #if conditionals does not work with some
   older preprocessors.  Thus we can't define something like this:

#define HAVE_GCC_VERSION(MAJOR, MINOR) \
  (__GNUC__ > (MAJOR) || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ >= (MINOR)))

and then test "#if HAVE_GCC_VERSION(2,7)".

So instead we use the macro below and test it against specific values.  */

/* This macro simplifies testing whether we are using gcc, and if it
   is of a particular minimum version. (Both major & minor numbers are
   significant.)  This macro will evaluate to 0 if we are not using
   gcc at all.  */
#ifndef GCC_VERSION
#define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
#endif /* GCC_VERSION */
Use GCC_VERSION as

Code:
#if (GCC_VERSION >= 3002)
your definitions here
#endif
  #3 (permalink)  
Old 08-07-2008
mannam srinivas mannam srinivas is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 30
missing binary operator before token "("

Hello vino,

thanks alot for u r reply.

it's working.

pls clarify why we are using gcc version greater than 3002.

kind regards,
Srinivas mannam
  #4 (permalink)  
Old 08-07-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Read the comments in the snippet vino posted.
  #5 (permalink)  
Old 08-07-2008
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,796
Quote:
Originally Posted by mannam srinivas View Post
pls clarify why we are using gcc version greater than 3002.
Request you to read the comments I had provided earlier.
Sponsored Links
Closed Thread

Bookmarks

Tags
gcc_version, have_gcc_version

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0