Programming in the C language - [#3] Makefiles and Compiling

preview_player
Показать описание
Now we'll be implementing the Makefile and compile our "Hello World" program we made in the previous tutorial in the series with the GNU Compiler Collection (GCC).

++ Links used in video ++

Рекомендации по теме
Комментарии
Автор

Really good, only tut thats actually simple, to link files if you have more and they are not linked in a main.c file already add '-lm' to the end of the compiler line(2nd line)
Also use a the keyboards tab button on the second line. Awesome!!!

TC-otky
Автор

It is the most simple and perfect video I found in my life

kamienel
Автор

Thank you! This is a very simple way to understand makefile

manaligaikwad
Автор

You're wrong. -o actually specifes the output executable name. if you remove it a default name "a.out" will be assigned to the executable.

amine
Автор

Thanks for sharing~
you're so nice...
:D

visitor
Автор

Could you please make some videos of makefile programmes with client, header, server and makefile files

karunasagarks
Автор

How are you getting a <newline> without a \n in your printf argument? Is that an artifact of Windows? When I run your code at the CL in linux, I get "Hello World!" immediately followed on the same line by the next command prompt. Of course, changing the printf("%s", helloWorld) to printf("%s\n", helloWorld) fixes the problem.

johncrockett
Автор

Literally just want to use the damn 'Make' command on VS code so I can continue learning from the CS50 lectures. I've spent 6 hours trying to get this to work and still can't get it lol. Why not just add the stupid command to all computers so we don't have to deal with this. And there's literally no tutorial online that shows how to do it. So frustrating.

michaelslifecycle
Автор

bro can u help me i want understand how to program desk top manager on linux ? i know C and C++ but i dont understand how i can make it ! what i need learn for that and how

mizel_
Автор

Can I place my folder on my Desktop on Windows or does that fuck me up?

SamuelHauptmannvanDam
Автор

Shouldn't the array be of size 13 actually (trailing zero)?

h.hristov
Автор

make: *** No targets specified and no makefile found. Stop.

why do i keep getting this message? how can i fix it??

laylaabuobeid
Автор

i tried this but i am getting this error can somebody help me in

Makefile:2: *** missing separator. Stop.

AmanKumar-lqcn
Автор

Just so you know, cygwin is not pronounced c-y-g-win it's pronounced as one word "sigwin" :)

erikanderson
Автор

I almost got through the video. Couldn't handle the constant circling of the cursor.

Rendon
Автор

The content is too little. Typical makefile contains compile, link and clean

stanleypo