I am having issues in OS 10.10.5, where I am unable to build and compile some simple code, either using Xcode or Sublime text.
I decided to install Linux Mint in Virtual Box to see if it would work.
Code: Select all
#include <stdio.h>
void main()
{
printf("Hello! This is my first C program with Linux Mint\n");
}
mint@mint-VirtualBox ~/Desktop $ gcc hello.c -o hello1
hello.c:2:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
mint@mint-VirtualBox ~/Desktop $ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Thanks in advance.