Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to compile jogutils in my sony vaio but I'm getting an error "label at the end of compound statement" I tried deleting the "defaul:" statement from the .c files but when i do that it gets even worse. Can someone please help me to compile this utils? how do i get rid of that error? thx
Can you post the relevant piece of code? Usually you don't have to simply remove a statement, but replace an obsolete goto [LABEL] statement with a return statement and then remove the LABEL.
roedor:/home/fabian/jogutils# make
cd jogapp; make
make[1]: Entering directory `/home/fabian/jogutils/jogapp'
gcc -g -O2 `gtk-config --cflags` -c jogapp.c
jogapp.c: In function ‘draw_picture’:
jogapp.c:184: error: label at end of compound statement
jogapp.c:223: error: label at end of compound statement
jogapp.c: In function ‘read_rc’:
jogapp.c:272: warning: incompatible implicit declaration of built-in function ‘exit’
jogapp.c: In function ‘check_jog’:
jogapp.c:319: warning: incompatible implicit declaration of built-in function ‘exit’
jogapp.c:367: error: label at end of compound statement
jogapp.c: In function ‘main’:
jogapp.c:463: warning: incompatible implicit declaration of built-in function ‘exit’
jogapp.c:476: warning: incompatible implicit declaration of built-in function ‘exit’
make[1]: *** [jogapp.o] Error 1
make[1]: Leaving directory `/home/fabian/jogutils/jogapp'
make: *** [jogapp/jogapp] Error 2
And this are lines 89 and 224 with the fn that causes the error, lines 184 and 223 ar
e in red:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.