什么是* .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.