简体   繁体   English

机器人框架无法将cygwin创建的.dll文件加载到python脚本中

[英]Robot framework cant load .dll file created by cygwin into python script

C program is compiled and converted into .dll using cygwin compiler.In python scripting it can be loaded using ctypes and call the functions successfully.But I import that python scripting as libraray into Robot Framework Automation tool,it cant load that .dll file and the test case also failed. C程序被cygwin编译器编译并转换为.dll。在python脚本中,可以使用ctypes加载它并成功调用函数。但是我将该Python脚本作为libraray导入到Robot Framework Automation工具中,无法加载该.dll文件和测试用例也失败了。

is the cygwin created dll file not be supported by RTF? cygwin创建的dll文件不受RTF支持吗?

Can anyone suggest any other method for that? 有人可以建议其他方法吗?

Given our discussion in the comments. 鉴于我们在评论中的讨论。 You can't mix and match like this. 您不能像这样混合搭配。 The format that Cygwin builds a DLL in is different that the format Windows expects a DLL in. You need to build and run all in one environment. Cygwin构建DLL的格式与Windows期望的DLL格式不同。您需要在一个环境中构建并运行所有文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM