你如何链接源代码 [英] how do you link source code

查看:113
本文介绍了你如何链接源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您在哪里链接源代码?我是新手,所以...谢谢.

where do you link the source code? i''m a newbee so... thanks.

推荐答案

在构建过程中,它会自动为您完成(或应该为您完成).
如果使用的是Visual Studio,则在创建项目时将构建构建文件,并在每次添加或删除文件和/或依赖项时对其进行更新.

您所要做的就是按下构建按钮,并且(只要您没有任何编译错误)链接就会为您完成.
It is automatically done for you (or should be) as part of the build process.
If you are using Visual Studio, then the build file is constructed when you create the project and updated every time you add or remove files and/or dependencies.

All you have to do is press the build button, and (provided you don''t have any compilation errors) link will be done for you.


技术上,您不链接源文件.源文件被编译为目标文件,然后将后者链接在一起(通常与其他库一起)以生成可执行文件.正如 OriginalGriff 所指出的那样,通常构建环境会为您处理整个过程.
Technically you don''t link source files. Source files are compiled to object files and the latter are then linked together (often with additional libraries) in order to produce the executable. As OriginalGriff pointed out, usually the build environment takes care of the whole process for you.


这篇关于你如何链接源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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