Index: grcompiler/compiler/ParserTreeWalker.cpp =================================================================== --- grcompiler/compiler/ParserTreeWalker.cpp (revision 767) +++ grcompiler/compiler/ParserTreeWalker.cpp (working copy) @@ -213,9 +213,9 @@ exit(-1); case 0 : if (m_verbose) - testexec = execlp(staGdlppFile.c_str(),staGdlppFile.c_str(),"-V",staFileName.c_str(),tmpgdl,0); // this is the code the child runs + testexec = execlp(staGdlppFile.c_str(),staGdlppFile.c_str(),"-I"PKGDATADIR,"-V",staFileName.c_str(),tmpgdl,0); // this is the code the child runs else - testexec = execlp(staGdlppFile.c_str(),staGdlppFile.c_str(),staFileName.c_str(),tmpgdl,0); // this is + testexec = execlp(staGdlppFile.c_str(),staGdlppFile.c_str(),"-I"PKGDATADIR,staFileName.c_str(),tmpgdl,0); // this is cout << "// exec retval:" << testexec << ", errno:" << strerror(errno) << "(" << errno << ")\n"; cout << "// tmpfile " << tmpgdl << endl; cout << "// file " << staFileName.c_str() << endl; Index: grcompiler/compiler/Makefile.am =================================================================== --- grcompiler/compiler/Makefile.am (revision 767) +++ grcompiler/compiler/Makefile.am (working copy) @@ -1,4 +1,4 @@ -AM_CPPFLAGS = -I@srcdir@/Generic -I@srcdir@/Grammar +AM_CPPFLAGS = -I@srcdir@/Generic -I@srcdir@/Grammar -DPKGDATADIR=\"$(pkgdatadir)\" SUBDIRS = Generic Grammar LIBS = @LIBS@ @LIBICONV@ -LGeneric -LGrammar -lgeneric -lparser