Compiling Gnucash 2.2.0 on Solaris 10 x86 using GCC - error
Alan Pae
alanpae at ilkda.com
Wed Jul 25 22:30:48 EDT 2007
In file included from dialog-query-list.c:36:
gnc-query-list.h:45: error: syntax error before "GtkCList"
gnc-query-list.h:45: warning: no semicolon at end of struct or union
gnc-query-list.h:71: error: syntax error before '}' token
gnc-query-list.h:75: error: syntax error before "GtkCListClass"
gnc-query-list.h:75: warning: no semicolon at end of struct or union
gnc-query-list.h:79: error: syntax error before '}' token
make[5]: *** [dialog-query-list.lo] Error 1
gnc-query-list.h
#ifndef GNC_QUERY_LIST_H
#define GNC_QUERY_LIST_H
#include <gtk/gtkclist.h>
#include "Query.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GNC_TYPE_QUERY_LIST (gnc_query_list_get_type ())
#define GNC_QUERY_LIST(obj) (GTK_CHECK_CAST ((obj), GNC_TYPE_QUERY_LIST,
GNCQueryList))
#define GNC_QUERY_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass),
GNC_TYPE_QUERY_LIST, GNCQueryListClass))
#define IS_GNC_QUERY_LIST(obj) (GTK_CHECK_TYPE ((obj), GNC_TYPE_QUERY_LIST))
#define IS_GNC_QUERY_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass),
GNC_TYPE_QUERY_LIST))
typedef struct _GNCQueryList GNCQueryList;
typedef struct _GNCQueryListClass GNCQueryListClass;
struct _GNCQueryList
{
GtkCList clist;
/* Query information */
Query *query;
gboolean no_toggle;
gboolean always_unselect;
gint current_row;
gint num_entries;
gpointer current_entry;
/* Column information */
gint num_columns;
GList *column_params;
/* numeric information */
gboolean numeric_abs;
gboolean numeric_inv_sort;
/* Sorting info */
gint sort_column;
gboolean increasing;
GtkWidget **title_arrows;
/* Column resizing */
gint prev_allocation;
gint *title_widths;
};
==========
I'll assume that its the:
extern "C" {
or does the close come later on?
thanks,
alan
More information about the gnucash-devel
mailing list