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 > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reg expression For Harikrishna Shell Programming and Scripting 2 05-07-2008 01:40 AM
nawk empty regular expression error Rjkz Shell Programming and Scripting 6 12-21-2007 11:07 AM
OR expression Rock UNIX for Dummies Questions & Answers 3 05-03-2007 08:50 AM
Regular Expression + Aritmetical Expression Z0mby Shell Programming and Scripting 2 05-21-2002 10:59 AM
compound expression in unix spalmer UNIX for Dummies Questions & Answers 3 10-19-2001 12:04 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-13-2007
arunchaudhary19 arunchaudhary19 is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 72
error: initializer expression list treated as compound expression

I had seen this error for the first time .....
error: initializer expression list treated as compound expression
please help....
  #2 (permalink)  
Old 11-13-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
This sounds like a compiler error. We need a LOT more information.
  #3 (permalink)  
Old 11-14-2007
arunchaudhary19 arunchaudhary19 is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 72
I dont know why it has occured .........
but when I compiled my program again after some time taking ....having some modifications in my code i.e collecting a return value of a function in a variable then this problem disappears....and my code working correctly....

but today when I again not collecting the return value of a function then also its working correctly...........

why so???????????
  #4 (permalink)  
Old 11-14-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
We don't know what operating system, what programming language or what compiler you are using.

We have no idea what code it is you had that failed to compile, we have no idea what changes you made.

So we're in more of the dark than you.
  #5 (permalink)  
Old 11-14-2007
arunchaudhary19 arunchaudhary19 is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 72
Operating system, --> Linux(Fedora 6)
Programming language or what compiler --> C++/g++ compiler

What changes I had made.--> first of all I was calling my own made function and not collecting what it is returning.....then I simply taken a variable and collected a returned value from that function.......that compilation error then disappers.

I am not using the concept of class here simply defining a function and calling it main.

So I just only want to know that what that error means because I had never seen it before & what is compound expression?????????
  #6 (permalink)  
Old 11-14-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by arunchaudhary19 View Post
So I just only want to know that what that error means because I had never seen it before & what is compound expression?????????
Why not post the offending section of source code with immediate surrounds and any appropriate prototypes, it might help us tell you what may be going on.

If you do a good for "error: initializer expression list treated as compound expression" there are many cases of people having that error.
Closed Thread

Bookmarks

Tags
linux

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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