Re: [Vala] Some trouble with --use-header in valac



Kos wrote:
Hey,

Probably a silly question, that you can answer in just a blink, but gives me
troubles for the past couple of days: Is it normal that the --use-header
option of valac doesn't generate .h header files?

thanks in advance
Dolfje

You must combine it with '--header' (-H). Vala does not generate
multiple header files anymore (single header include is now standard for
GObject libraries).

Maybe Vala should warn when '--use-header' is used without '--header'.
Without '--use-header' Vala will use forward declarations in the
generated C files.


Generate header file:
$ valac *.vala --header myheader.h

Generate header file and use it in the generated C files:
$ valac *.vala --header myheader.h --use-header


Best regards,

Frederik



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