在我的Ada代码中使用Win32库函数时出错 [英] Getting errors while using Win32 library functions in my Ada code

查看:101
本文介绍了在我的Ada代码中使用Win32库函数时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ada代码中使用以下语句:-

I'm using following statements in my Ada code:-

with Win32;
with Win32.Winbase;  use Win32.Winbase;
with Win32.Winnt;    use Win32.Winnt;

但是出现错误:-

"file win32.ads not found" 
"file win32-winbase.ads not found" 
"file win32-winnt.ads not found"

请提出问题!

推荐答案

由于没有安装包含丢失文件的软件包(或者可能是将它们安装在编译器找不到它们的位置)而收到这些错误。

You’re getting these errors because you haven’t installed the package that contains the missing files (or, perhaps, you’ve installed them somewhere the compiler can’t find them).

Win32Ada软件包位于 Github

The Win32Ada package is on Github.

或者您可以在 AdaCore的社区中找到预编译的二进制安装程序以匹配您的编译器版本网站(如果不是立即可见,请查看右下角的更多软件包,平台,版本和资源链接)。

Or you might be able to find a prebuilt binary installer to match your compiler at AdaCore’s Community Edition site (if not immediately obvious, check out the More packages, platforms, versions and sources link at the bottom right).

这篇关于在我的Ada代码中使用Win32库函数时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆