Re: [Vala] Question about valac symbols (-D, --define)



Hello,

where I use DATA_DIRECTORY_PATH somewhere in main.c as regular string. When
I try to do something similar with valac it fails, her's make output:

/usr/bin/valac --define=DATA_DIRECTORY_PATH="../data" --pkg=gtk+-2.0 -C
main.vala
main.vala:29.17-29.35: error: The name `DATA_DIRECTORY_PATH' does not exist
in the context of `Main.main'
 string path = DATA_DIRECTORY_PATH;
 ^^^^^^^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)


if you want to pass some compiletime options, you might have a look at this solution:
http://github.com/tadeboro/Sampala/blob/master/vapi/config.vapi

- fabian



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