compiling gnucash2 on FC5-devel (gcc 4.1.0)

David Hampton hampton-gnucash at rainbolthampton.net
Sat Feb 4 23:05:14 EST 2006


On Thu, 2006-01-12 at 23:12 -0500, ag381597 at ohio.edu wrote:

> 1) in src/engine/gw-engine.c (which it appears may actually be generated at some
> point from scheme code?), a variable was passed an an argument to a function
> before being initialized, so I simply initialized it to a constant of the
> appropriate type:

As stated earlier you need g-wrap 1.9.6 to compile cleanly under gcc4.x.

> 2) in src/gnome-utils/gnc-tree-view-account.c there was a "type punning"
> problem, casting a GtkWidget pointer to a gpointer within a function call.  I
> fixed this using a temp variable, as several people have suggested for similar
> errors on other gtk-related mailing lists:

Applied.

> 3) in src/register/ledger-core/split-register.c , some function return values
> are being typecast yet ignored.  I found that quite strange, but simply created
> a variable to which the return value could be assigned:

I changed it to be a cast to a (void) instead of (void *).

> Now it builds just fine for me.  I haven't tested much functionality yet, but
> likely will in the next few weeks.  Nice work so far, guys.

Build for me on FC5t2.

David




More information about the gnucash-devel mailing list