I'm porting over some old C code and wonder if there's a way to have to NOT HAVE TO include every function in a header as an external declaration?
E.g.
foo1.c
void doThis()
{
.... code ...
}
/* end of file */
foo2.c
void doThisFirst()
{
doThis();
....
}
/* end of file */
Generates an error when I compile foo2.c that "'doThis' was not declared in this scope".
I have hundreds of files like this and really don't want to have to declare every single function! Help!
Thanks.
E.g.
foo1.c
void doThis()
{
.... code ...
}
/* end of file */
foo2.c
void doThisFirst()
{
doThis();
....
}
/* end of file */
Generates an error when I compile foo2.c that "'doThis' was not declared in this scope".
I have hundreds of files like this and really don't want to have to declare every single function! Help!
Thanks.