Re: [Vala] Problem converting library
- From: "Sam Liddicott" <sam liddicott com>
- To: Nicolas <c r n a wanadoo fr>, <vala-list gnome org>
- Subject: Re: [Vala] Problem converting library
- Date: Sat, 16 May 2009 08:59:51 +0100
You could try running the headerfile through the C pre-processor first (gcc -E) with any required includes so
you expand out special declaration macros.
Sam
-----Original Message-----
From: Nicolas <c r n a wanadoo fr>
Sent: 15 May 2009 19:12
To: vala-list gnome org
Subject: [Vala] Problem converting library
Hi,
I'm trying to port a non Glib library, and i have some problems.
For example, when vala-gen-introspect try to convert this:
GAULFUNC population *ga_genesis_integer( const int
population_size,
const int num_chromo,
const int len_chromo,
GAgeneration_hook generation_hook, (!!!
this is the line 507 !!!)
GAiteration_hook iteration_hook,
GAdata_destructor data_destructor,
GAdata_ref_incrementor data_ref_incrementor,
GAevaluate evaluate,
GAseed seed,
GAadapt adapt,
GAselect_one select_one,
GAselect_two select_two,
GAmutate mutate,
GAcrossover crossover,
GAreplace replace,
vpointer userdata );
It return:
/usr/local/include/gaul.h:507: syntax error, unexpected identifier
/usr/local/include/gaul.h:509: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:510: syntax error, unexpected identifier,
expecting ',' or ';'
/usr/local/include/gaul.h:512: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:513: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:514: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:515: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:516: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:517: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
/usr/local/include/gaul.h:518: syntax error, unexpected typedef-name,
expecting identifier or '(' or '*'
Do you know what can i do to resolve this problem ?
Thanks in advance to everyone who can help me.
Nicolas.
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]