Error in compiling ola mundo

Asked

Viewed 109 times

0

#include <stdlib>

int main()
{
   printf("Ola Mundo!\n");
   return 0;
}

I can’t run the program on Ubuntu! Build error

3 answers

3

Try to put #include <stdio.h> just above the code.

1


apt-get install gcc

Alter #include <stdlib> for

#include <stdlib.h>

0

Change #include <stdlib.h> for #include <stdio.h>, for the function printf(); is in the stdio.h, and not in the stdlib.h.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.