LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   warning: deprecated use of label at end of compound statement (https://www.linuxquestions.org/questions/programming-9/warning-deprecated-use-of-label-at-end-of-compound-statement-298248/)

abk4523 03-06-2005 06:01 AM

warning: deprecated use of label at end of compound statement
 
I tried compiling a c program with gcc 3.2, it compiles but with warnings. The error is "warning: deprecated use of label at end of compound statement". When I try to run the program, it gives me a bunch of "undefined references" messages on variables in the program. Some research hinted I may be using non standard ISO coding, but no solutions. I think the problem may be null default statements in my case statements but am not sure. I googled and found references to a patch, but cannot find the patch. I thought updating gcc would help, but when I tried to unpack gcc 3.4.3 (a 26 meg file), the computer seemed to hang. Is there a simple coding trick I am missing, or should I find an uncorrupted copy of gcc 3.4.3? Any help?:newbie:

pablowablo 03-06-2005 09:50 AM

Quote:

The error is "warning: deprecated use of label at end of compound statement".
Hmmm this might be due to a switch statement without a "default" case... it's just a warning anyway




The undefinedf references may be due to uncompile source files.... are you sure you're compiling all source codes?


Like gcc source1.c source2.c source3.c ???


All times are GMT -5. The time now is 04:53 PM.