Hi Guys,
I just grabbed Patrick's latest from CVS, and tried compiling it. Gcc
barfs thusly:
-------------------------------------------------------------------
if gcc -DLOCALEDIR=\"/usr/local/geda/share/locale\" -DHAVE_CONFIG_H
-I. -I. -I.. -I../intl -I../include -I/usr/local/geda/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/include/freetype2/config
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2 -MT
x_multiattrib.o -MD -MP -MF ".deps/x_multiattrib.Tpo" -c -o
x_multiattrib.o x_multiattrib.c; \
then mv -f ".deps/x_multiattrib.Tpo" ".deps/x_multiattrib.Po"; else rm
-f ".deps/x_multiattrib.Tpo"; exit 1; fi
x_multiattrib.c: In function `multiattrib_init':
x_multiattrib.c:899: error: syntax error before '<<' token
x_multiattrib.c:899:33: warning: character constant too long for its
type
make[4]: *** [x_multiattrib.o] Error 1
------------------------------------------------------------------
The relevant part of x_multiattrib is this:
------------------------------------------------------------------
/* add the treeview to the scrolled window */
gtk_container_add(GTK_CONTAINER(scrolled_win), treeview);
/* set treeview of multiattrib */
multiattrib->treeview = GTK_TREE_VIEW(treeview);
/* add the scrolled window to frame */
gtk_container_add(GTK_CONTAINER(frame), scrolled_win);
/* pack the frame */
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(multiattrib)->vbox), frame,
TRUE, TRUE, 1);
gtk_widget_show_all(frame);
<<multiattrib_init():create the 'add attribute' frame >>
/* now add the close button to the action area */
gtk_dialog_add_button(GTK_DIALOG(multiattrib),
GTK_STOCK_CLOSE,
MULTIATTRIB_RESPONSE_CLOSE);
}
static void
multiattrib_set_property(GObject * object,
guint property_id,
const GValue * value, GParamSpec * pspec)
{
Multiattrib *multiattrib = MULTIATTRIB(object);
--------------------------------------------------------
This looks to me as if the noweb translation didn't work properly. I
looked at the noweb source but I don't understand noweb enough to tell
what it is supposed to do & don't have time now to pursue it.
However, it feels like a syntax error to me; noweb produces strange C
code where there is a syntax error.
Any ideas what's up?
Stuart