I've got a problem. I hopeIi can get some tips from you.
I am running the newest version of mikroC PRO for PIC32 v.2.5.1
I am working on a project for a few months now. To keep the project clear, I create sepereate .c files, with their header files. Yestereday I added a new .c and his header file and added them to the project. But this time I ran into a problem. It seems that the compiler, for some odd reason, can't reach those files. When I comile my project i get the error: "Undeclared identifier 'testFunction' in expression".
My code:
Main.c:
Code: Select all
#include "main.h"
//lots of more includes here
#include "testheader.h"
void main()
{
//lots of functions
testFunction();
//more functions;
}
Code: Select all
#include testFunction.h
void testFunction()
{
//do something
}
Code: Select all
#ifndef _TESTFUNCTION_H
#define _TESTFUNCTION_H
//function prototypes
void testFunction(void);
#endif
Regards,
Kees