Portál AbcLinuxu, 8. prosince 2025 06:05
# make gcc -g -O2 -Wall -DDEFAULT_PATH=\"/usr/local/share/cheops\" \ -DLIB_PATH=\"/usr/local/lib/cheops\" -I/usr/include/gtk-1.2 \ -I/usr/include/glib-1.2 -I/usr/lib/glib/include \ -I/usr/X11R6/include -DHAS_GMODULE -c -o cheops.o cheops.c \ cheops.c: In function `page_dispatch': cheops.c:742: error: label at end of compound statement make: *** [cheops.o] Error 1
static int page_dispatch(GtkObject *thing, GdkEvent *event, struct net_page *np)
{
#ifndef GNOME
#ifdef USE_ITEM
GtkWidget *pagemenu;
#else
static GtkMenuPath *gmp;
#endif
#endif
switch(event->type) {
case GDK_2BUTTON_PRESS:
printf("Double click!\n");
break;
case GDK_BUTTON_PRESS:
if (!valid_np(np))
return FALSE;
if (np->sel)
highlight_object(np->sel, HIGHLIGHT_NORMAL);
set_infobox(NULL);
np->sel = NULL;
#ifndef USE_CANVAS
if (event->button.button != 1) {
#ifdef USE_ITEM
pagemenu = gtk_item_factory_get_widget(main_window.menuf, "/Viewspace");
gtk_menu_popup(GTK_MENU(pagemenu), NULL, NULL, NULL, NULL, event->button.button, event->button.time);
#else
gmp = gtk_menu_factory_find(main_window.menuf, "Main/Viewspace");
gtk_menu_popup(GTK_MENU(GTK_MENU_ITEM(gmp-
>widget)->submenu), NULL, NULL, NULL, NULL, event->button.button, event->button.time);
#endif
}
#endif
break;
case GDK_MOTION_NOTIFY:
if (np->sel)
event_dispatch(NULL, (GdkEvent *)event, np->sel);
default:
}
return FALSE;
}
default:napiste
default:;
gpl.c:1: error: missing terminating " character gpl.c:2: error: `Cheops' undeclared here (not in a function) gpl.c:2: error: syntax error before "is" gpl.c:3: error: missing terminating ' character gpl.c:4: error: stray '\' in program gpl.c:4: error: missing terminating " character gpl.c:7: error: stray '@' in program gpl.c:15:55: invalid digit "9" in octal constant gpl.c:26: error: missing terminating ' character gpl.c:53: error: missing terminating ' character gpl.c:58: error: missing terminating ' character gpl.c:64: error: missing terminating ' character gpl.c:74: error: stray '\' in program gpl.c:74: error: missing terminating " character gpl.c:75: error: stray '\' in program gpl.c:75: error: missing terminating " character gpl.c:80: error: stray '\' in program gpl.c:80: error: missing terminating " character gpl.c:89: error: missing terminating ' character gpl.c:93: warning: type defaults to `int' in declaration of `warranty' gpl.c:93: warning: data definition has no type or storage class gpl.c:94: error: syntax error before "give" gpl.c:135: warning: type defaults to `int' in declaration of `rather' gpl.c:135: warning: type defaults to `int' in declaration of `the' gpl.c:135: error: syntax error before "intent" gpl.c:150: warning: type defaults to `int' in declaration of `or' gpl.c:152: warning: type defaults to `int' in declaration of `b' gpl.c:152: error: syntax error before ')' token gpl.c:157: warning: type defaults to `int' in declaration of `or' gpl.c:159: warning: type defaults to `int' in declaration of `c' gpl.c:159: error: syntax error before ')' token gpl.c:203: error: missing terminating ' character gpl.c:228: warning: type defaults to `int' in declaration of `system' gpl.c:228: warning: type defaults to `int' in declaration of `which' gpl.c:228: error: syntax error before "is" gpl.c:253: error: stray '\' in program gpl.c:253: error: missing terminating " character gpl.c:254: error: stray '\' in program gpl.c:254: error: missing terminating " character gpl.c:273: error: stray '\' in program gpl.c:273: error: missing terminating " character gpl.c:301: error: stray '\' in program gpl.c:301: error: missing terminating " character gpl.c:303: error: missing terminating ' character gpl.c:304:19: invalid suffix "yy" on integer constant gpl.c:318:51: invalid digit "9" in octal constant gpl.c:325:43: invalid suffix "yy" on integer constant gpl.c:326: error: stray '`' in program gpl.c:326: error: missing terminating ' character gpl.c:328: error: stray '`' in program gpl.c:328: error: missing terminating ' character gpl.c:330: error: stray '`' in program gpl.c:330:34: warning: character constant too long for its type gpl.c:332: error: stray '`' in program gpl.c:332:39: warning: character constant too long for its type gpl.c:336: error: stray '\' in program gpl.c:336: error: missing terminating " character gpl.c:340: error: stray '`' in program gpl.c:340: error: missing terminating ' character gpl.c:350: error: missing terminating " character make: *** [gpl.o] Error 1
[~]$ cat switch.c
int main(int argc, char *argv) {
switch (argc) {
case 1: ;
default:
}
}
[~]$ gcc switch.c
switch.c: In function ‘main’:
switch.c:5: error: label at end of compound statement
[~]$ gcc-3.3 switch.c
switch.c: In function `main':
switch.c:5: warning: deprecated use of label at end of compound statement
Verze 4.0 hlasi chybu, kdyzto 3.3 jenom varuje.
f/com.c:11078: error: conflicting types for 'ffecom_gfrt_basictype' f/com.h:236: error: previous declaration of 'ffecom_gfrt_basictype' was here f/com.c:11078: error: conflicting types for 'ffecom_gfrt_basictype' f/com.h:236: error: previous declaration of 'ffecom_gfrt_basictype' was here make[1]: *** [f/com.o] Error 1 make[1]: Leaving directory `/home/savalo/programs/gcc-3.3/gcc' make: *** [all-gcc] Error 2zkusil jsem tedy nainstalovat starsi verzi: cheops-0.60pre1-1.i386.rpm a jde to konecne spustit...dekuji za vas cas
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.