From: Stefan B. <sb...@sb...> - 2005-11-03 16:31:58
|
Luke Dunstan wrote: > What are you trying to do? If your DLL is being loaded by one > executable (python.exe I assume), how does it make sense to import > symbols from a different .exe? I develop an application (written in Ada) to which I added a Python interpreter because I want to make it possible to "script" the application via Python. In order to generate the binding to Python, I'm using SWIG (http://www.swig.org/). SWIG's idea is, that the Python interpreter loads (via an import command) a Python file which itself loads a DLL. This DLL provides the commands of the main exe that can be called via the Python scripting. On the Ada side, those functions that can be called from the script, are exported with pragma Export to C. The static link-time dependency is only from the DLL to the main exe, but not otherwise. The other dependency is run-time and established via the Python interpreter, so there's no static cyclic dependency. This setup works straight out of the box on GNU/Linux. But I'm having endless trouble on Windows. -- Stefan Bellon |