什么是* .o文件? [英] What is *.o file?

查看:478
本文介绍了什么是* .o文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编译自己的项目。并因以下错误而停止运行:

I'm compiling own project. And it halted by this error:


LINK ||致命错误LNK1181:无法打开
输入文件
'obj \win\release\src\lua\bindings.o'|

LINK||fatal error LNK1181: cannot open input file 'obj\win\release\src\lua\bindings.o'|

使用Code :: Blocks with VS编译Win7下的2005/2008编译器。
还有很多其他空目录,其中缺少* .o文件。

Compiling using Code::Blocks with VS 2005/2008 compiler under win7. There are also lot of another empty directories where *.o files are missing.

它们做什么?

推荐答案

以.o结尾的文件是目标文件。在将每个源文件链接在一起之前,编译器会为每个源文件创建一个目标文件。

A file ending in .o is an object file. The compiler creates an object file for each source file, before linking them together, into the final executable.

这篇关于什么是* .o文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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