LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

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, 10:50 AM   #2
pablowablo
Member
 
Registered: Apr 2004
Posts: 131

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


Reply


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 03:19 PM
warning: no newline at end of file huno Programming 1 07-16-2004 10:39 AM
Kernel compile errors, deprecated end of line? AzraelBrown Slackware 2 10-10-2003 08:20 AM
[mntent]:warning: no final newline at the end of /etc/fstab Rodcl Linux - Hardware 4 08-25-2002 03:58 PM
Warning: no newline at end of file acid_kewpie Programming 1 03-13-2002 03:53 AM


All times are GMT -5. The time now is 08:05 PM.

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