Ramya_Guduru
February 21st, 2016, 04:02 AM
hi Gurus,
I'm compiling a very basic C program in Linux
I have stored the 'hello.c' file on the Desktop. The file contains:
#include "apue.h"
int
main(void)
{
printf("uid = %d, gid = %d\n", getuid(), getgid());
exit(0);
}
In Linux Ubuntu, when I entered
username@ubuntu/Desktop$ gcc hello.c
I'm receiving the following error:
hello.c:1:18: fatal error: apue.h: No such file or directory
#include "apue.h"
^
compilation terminated.
Please help
I'm compiling a very basic C program in Linux
I have stored the 'hello.c' file on the Desktop. The file contains:
#include "apue.h"
int
main(void)
{
printf("uid = %d, gid = %d\n", getuid(), getgid());
exit(0);
}
In Linux Ubuntu, when I entered
username@ubuntu/Desktop$ gcc hello.c
I'm receiving the following error:
hello.c:1:18: fatal error: apue.h: No such file or directory
#include "apue.h"
^
compilation terminated.
Please help