Hi there,
I have the following Makefile:
sudoku-solver: sudoku2.c
g++ sudoku2.c -o sudoku-solver
When I run make on my Mac, the sudoku2.c compiles flawlessly and works fine.
Now, on my Linux machine, I "tried" to install the GNU compiler (i suck at Linux! So I don't know if I installed it correctly or not!)
But when I run make on Linux, I get an error saying that the files
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
where not found!!
So is this because I didn't correctly install the libraries, or do I have to include these files some other way on a Linux?
Thanks!
I have the following Makefile:
sudoku-solver: sudoku2.c
g++ sudoku2.c -o sudoku-solver
When I run make on my Mac, the sudoku2.c compiles flawlessly and works fine.
Now, on my Linux machine, I "tried" to install the GNU compiler (i suck at Linux! So I don't know if I installed it correctly or not!)
But when I run make on Linux, I get an error saying that the files
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
where not found!!
So is this because I didn't correctly install the libraries, or do I have to include these files some other way on a Linux?
Thanks!