i have everything compiling except that it cant find the c function that is in its own file
That just sounds evil! If you put a prototype at the very top of the file (yeah most people use header files but you don't have to) then this shouldn't happen!