[ an / co / v / t ] [ e / r / sp ] [ p / s ] [ All / Recent / RSS ] [ FAQ / IRC / Rules / Legal / News ] [ Twitter ] [ Mod ]

/t/ - Technology

Gadzooks, Moosic, Compooters, and Cyberpunk
Name
Email
Subject
Comment
File
Embed
Password (For file deletion.)

File: 1519227646505.jpg (994.7 KB, 2560x1600, 45545.jpg)

 No.1604

Hi guys, today I wanted to start learning about programming, so I wanted to do that Hello World crap thinking it would be really easy, so I wrote the program:
#include<stdio.h>

#include<stdlib.h>

int main()

{

printf("\nHello World!");

return(0);

}


And for compiling it I wrote the command:
gcc -Wall -W -Werror helloworld.c -o helloworld

But it didn't work and I got:
/usr/bin/ld: cannot open output file helloworld: Permission denied
collect2: error: ld returned 1 exit status


I googled for a solution but I didn't found anything, help me please.

 No.1605

chmod helloworld 777

 No.1606

>>1605
Oh… I feel kind of retard.

 No.1607

>>1606

Don't. We all have done it. Glad you got it figured out.



[Return][Go to top] [Catalog] [Post a Reply]
Delete Post [ ]
[ an / co / v / t ] [ e / r / sp ] [ p / s ] [ All / Recent / RSS ] [ FAQ / IRC / Rules / Legal / News ] [ Twitter ] [ Mod ]