gcc编译器从哪个文件编译? [英] Which files the gcc compiler compile from?

查看:134
本文介绍了gcc编译器从哪个文件编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio2005.
我在项目中导入了代码库文件,然后发现某些文件未编译.
我想知道编译器如何编译项目文件,以及它是从哪个文件编译的.

I am working on Visual Studio 2005.
I have imported code library files in my project,then I have found that some files are not compiled.
I want to know how the compiler compiles the project files, and which files it compiles from.

推荐答案

问题似乎并不那么简单. GCC并不是真正的编译器.这是GNU工具链的关键组成部分,用于使用多种不同的语言来构建软件.我个人将其用于Ada,C和C ++,但还有更多.该工具链允许以前端的形式创建一种新语言,并在其中包含构建过程.

请参阅:
http://en.wikipedia.org/wiki/GCC_Compiler#Front-ends [ ^ ].

GCC是开发并主要用于Linux和其他类似Unix的操作系统,但也广泛用于Windows.

因此,GCC使用的文件可能会有所不同. :-)请参阅我对问题的评论.万一您的文件无法编译,可能有太多原因.通常,您需要一个一个地解决它们.我们将需要更详细的信息来帮助您编译代码.这种编译的问题很常见.它还取决于代码的编写方式,代码质量和所使用的库集.有时,这些代码的可移植性很差,因此要在Windows上构建此类代码,可能会非常困难且耗时.

—SA
The question is not that simple as it seems to be. GCC is not really a compiler; this is a key component of the GNU tool chain used to build software using a number of different languages. I personally used it for Ada, C and C++, but there are a lot more. The tool chain allows to create a new language in the form of a front-end and include in it a the build process.

Please see:
http://en.wikipedia.org/wiki/GCC_Compiler#Front-ends[^].

GCC is developed and primarily used Linux and other Unix-like OS, but also widely used on Windows.

So, the files used by GCC may vary. :-) Please see my comments to the question. There could be too many reasons in case your files do not compile. You need to address them one by one, usually. We would need way more detailed information to help you to compile the code. The problems of such compilation are very usual. It also depends on how the code is written, on the code quality and on the set of libraries used. Sometimes the code is very poor in portability, so the adaptation of such code to be built on Windows can be quite difficult and time-consuming task.

—SA


这篇关于gcc编译器从哪个文件编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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