Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-06-2005, 06:01 AM   #1
Registered: Jun 2004
Distribution: RH8/Fedora Core 4
Posts: 139

Rep: Reputation: 15
Question 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?
Old 03-06-2005, 09:50 AM   #2
Registered: Apr 2004
Posts: 131

Rep: Reputation: 15
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 ???


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
warning: no final newline at the end of /etc/fstab Jeebizz Slackware 2 10-12-2004 02:19 PM
warning: no newline at end of file huno Programming 1 07-16-2004 09:39 AM
Kernel compile errors, deprecated end of line? AzraelBrown Slackware 2 10-10-2003 07:20 AM
[mntent]:warning: no final newline at the end of /etc/fstab Rodcl Linux - Hardware 4 08-25-2002 02:58 PM
Warning: no newline at end of file acid_kewpie Programming 1 03-13-2002 02:53 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration