在vs 2015中使用外部资源编译C文件 [英] Compile a C file with external resources in vs 2015

查看:84
本文介绍了在vs 2015中使用外部资源编译C文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经制作了ac程序并希望在VS 2015中编译它,我试过这个 思考:编译C程序 [ ^ ]但是c源文件也有依赖项.c和.h文件并且编译器给出了无法找到它们的错误,我有这些依赖项,我怎样才能将它们包含在编译器中?



谢谢



我尝试了什么:



链接有效,但无法找到依赖项

Hi,
I have made a c program and want to compile it in VS 2015, I have tried this Walkthrough: Compiling a C Program[^] but the c source file has also dependencies .c and .h files and the compiler gives error that can't find them, I have these dependencies, how can I include them in the compiler?

Thank you

What I have tried:

Link works but cannot find dependencies

推荐答案

首先找到这些文件并将它们复制到项目目录中。您需要通过将现有文件添加到项目将这些文件包含在项目中。



如果您还有其他问题:谷歌为它或在您的问题中包含完整的错误消息!!!
At first find these files and copy them into your project directory. You need to include these files in your project via "Add existing files to project".

If you you further problems: Google for it or include the full error messages in your question!!!


这篇关于在vs 2015中使用外部资源编译C文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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