|
From: | Daniel Diaz |
Subject: | Re: gprolog extended via C interface ignores command-line interface arguments |
Date: | Tue, 9 Jan 2018 16:04:54 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
Hi Simon,
sorry for the late reply. The top-level is a specific application which its own main() (testing filtering command-line arguments to handle some like --query-goal). It is not the case of user defined application for which the default main() does not scan the command-line (the user is free to use any command). Your executable is such an application, only the default main() is used. To provide an executable with your own C code which behaves like the actual top-level (resulting in an augmented top-level with new functionalities built-in) it is necessary to add a compiler option (e.g. --new-top-level) to force the inclusion of the top-level main(). Do you need this ? Daniel Le 02/12/2017 à 07:14, Simon Curry a écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |