How do I specify the pathname of the ECLiPSe file when compiling ECLiPSe from C++?
ECLiPSe expects the file with the predicate called to be in the running process’s “current directory”. When the predicate is invoked from an external program, the current directory is not under ECLiPSe’s control. Specify an absolute pathname to your ecl file by: post_goal(term(EC_functor(“compile”,1),”//C/foo/bar/predicate”)); (but note the generic ECLiPSe pathname syntax, see os_file_name/2).