[Vala] RE : forward déclaration



IIRC, if you write the two files (lets say Hkl/Vector.vala and 
Hkl/Matrix.vala) without any "forward references"(not possible), then 
compile them in the same command

$ valac -c Vector.vala Matrix.vala

the compiler automatically finds cross references (like, it does the 
parsing of both files before the symbol analysis).

Hello,
thanks but in fact I am building a library so I use vala to generate the .c and .h files
$ valac -C Vector.vala Matrix.vala

then valac segfault. I supposed because of this forward declaration.
If I puth everythings in one file it is ok

Frederic



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]