PDA

View Full Version : unknown function "define"


toki78
09-22-2010, 09:47 AM
Hi,
the following code snippet :

...
OutputStream os = fo.getOutputStream();
QuercusEngine qe = new QuercusEngine();
qe.setOutputStream(os);
qe.executeFile(headerFile.getAbsolutePath());
os.close();
...

produces the following exception:

com.caucho.quercus.QuercusErrorException: eval::3: Fatal Error: 'define' is an unknown function.
at com.caucho.quercus.env.Env.error(Env.java:6415)
at com.caucho.quercus.env.Env.error(Env.java:6301)
at com.caucho.quercus.env.Env.error(Env.java:5985)
at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr .java:198)
at com.caucho.quercus.expr.CallExpr.eval(CallExpr.jav a:151)
...

Am I missing some initialization stuff ?

Regards
Thorsten