Just place the ' spi.c ' in a new empty folder
together with all headers.h .
And if not already done, add these #include lines to spi.c :
.. like this .. the quotes tell : look for the headers in the spi.c directory.
#include "header.h"
#include "header2.h"
#include "header3.h"
.. and then ..
cd new/
gcc spi.c -o main.bin
.....
Last edited by knudfl; 11-11-2009 at 07:14 PM.
|