Re: [Vala] Question about valac symbols (-D, --define)
- From: "Fabian Deutsch" <fabian deutsch gmx de>
- To: "Tomasz Jankowski" <tomcioj gmail com>,vala-list gnome org
- Subject: Re: [Vala] Question about valac symbols (-D, --define)
- Date: Thu, 07 Oct 2010 13:32:24 +0200
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]