• So, it's getting more interesting but we'll soon see that things don't always compile as easily as this command suggests.

    更有意思了,但我们很快就会发现,并不是所有的编译都,像这条命令这么简单。

    哈佛公开课 - 计算机科学课程节选

  • > So this time I had the foresight to install this compiler but what I'm gonna do is this.

    >,这次我非常有先见之明地,安装了这个编译器,但是我这次要做的却是。

    哈佛公开课 - 计算机科学课程节选

  • It says you gave me something I didn't know how to deal.

    它的意思是你给了编译器一个,他不知道怎么处理的东西。

    麻省理工公开课 - 计算机科学及编程导论课程节选

  • So let me challenge you with this: inside of these curly braces where I have put a comment with slash slash -- a "comment" means nothing here gets compiled, it's just for the human to read.

    让我用这个来挑战你们:,在这些花括号里面,我通过双斜杠写入了一个注释,-一条“注释“在这里不会被编译,它只是用来我们阅读的。

    哈佛公开课 - 计算机科学课程节选

  • If you're getting these compilation errors, well, -- when you compile, notice there's a number of key help -- the number of helpful tidbits here.

    如果你们得到了这些编译错误,当你编译的时候,注意这里有很多关键帮助-,这里很多帮助信息。

    哈佛公开课 - 计算机科学课程节选

  • So now when I compile this fourth version with make math4 1 31 and then run math4, I indeed get 1.31.

    所以现在我键入“make,math4“来编译第四个版本4,然后运行math4,我得到了。

    哈佛公开课 - 计算机科学课程节选

  • So, thankfully, C does provide a solution for this, whereby, I can provide a hint, essentially, to the compiler.

    幸亏,C为这个提供了一个解决方案,那样,本质上,我可以给编译器一个提示。

    哈佛公开课 - 计算机科学课程节选

  • Better! So no error messages means success is probably what has happened.

    好啦,错误信息消失了,这说明你编译成功了。

    哈佛公开课 - 计算机科学课程节选

  • So if I link in both of those libraries, now it compiles okay.

    把所有的库都连接起来,重新编译,就好了。

    哈佛公开课 - 计算机科学课程节选

  • There are no syntax errors so it does compile.

    这里没有语法错误,所以它通过编译了

    哈佛公开课 - 计算机科学课程节选

  • I just reran make or GCC does it for me, and now I've got all these errors. Well, let's see.

    我刚重新运行了make,或者GCC为我编译了代码,现在我得到了这些错误,好的,让我们看看。

    哈佛公开课 - 计算机科学课程节选

  • I included the length, let me go ahead and compile this program called Holloway.c. No errors which means that's good.

    我包含了那个长度,我们继续,编译这个Holloway,c程序,零错误,非常好。

    哈佛公开课 - 计算机科学课程节选

  • It compiles okay.

    编译成功了。

    哈佛公开课 - 计算机科学课程节选

  • So putting back that prototype allows me to compile this, because I'm saying proactively to the compiler hey, you're going to see a function called increment.

    把那个原型放回原处使我能够编译它,因为我提前向编译器打了招呼,将看到一个叫做increment的函数。

    哈佛公开课 - 计算机科学课程节选

  • Now, you might in some context have to add the right kind of parentheses so that GCC or your compiler doesn't get confused, but really they just reverse each other's processes.

    现在,你可能要在相应的地方,加入一些圆括号,这样GCC或编译器就不会误解你的意思,但是它们颠倒了相互的过程。

    哈佛公开课 - 计算机科学课程节选

  • So you have to somehow convert the source code, the C code into 0s and 1s and for that process there exist this tool called a compiler that someone else wrote that takes this stuff as input and produces this stuff as output.

    所以你必须把源代码,即C语言代码转换成二进制文件,这个过程就需要我们提到的编译器了,它是由别人编写的一个软件,以这些代码作为输入,将会产生的输出。

    哈佛公开课 - 计算机科学课程节选

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定