You are running the gcc
command from the home directory (~
) when the hello.c
file is in ~/Documents
.
Either navigate to Documents
using cd
before running gcc
or place hello.c
in the home directory.
More Related Contents:
- What is the octet mode in TFTP?
- How to avoid using printf in a signal handler?
- What is the LD_PRELOAD trick?
- What is the equivalent to getch() & getche() in Linux?
- Getting terminal width in C?
- How do you do non-blocking console I/O on Linux in C?
- listen() ignores the backlog argument?
- What is “:-!!” in C code?
- Core dumped, but core file is not in the current directory?
- What is the format of the x86_64 va_list structure?
- Merge multiple .so shared libraries
- How to set CPU affinity for a process from C or C++ in Linux?
- How do I get a thread ID from an arbitrary pthread_t?
- how could I intercept linux sys calls?
- Why am I able to perform floating point operations inside a Linux kernel module?
- Receiving multiple multicast feeds on the same port – C, Linux
- fcntl, lockf, which is better to use for file locking?
- Pthread Run a thread right after it’s creation
- Linux/POSIX equivalent for Win32’s CreateEvent, SetEvent, WaitForSingleObject
- Implementing pipe in C
- How to detect key presses in a Linux C GUI program without prompting the user?
- Pipe two or more shell commands in C using a loop
- Returning struct containing array
- C: Different implementation of clock() in Windows and other OS?
- How to read terminal’s input buffer immediately after keypress
- What is ‘:-!!’ in C?
- Efficient way to find task_struct by pid
- What is the difference between AF_INET and PF_INET in socket programming?
- Can you bind() and connect() both ends of a UDP connection
- Where can I find system call source code?