LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

missing prototype

I wrote this simple callback function and when I compile the program, it gives me an error that I am missing prototype for Test1() even though I included its .h file that has prototype of this function. If I put the #include for Test1.h first in my source file, the compiler complains about the prototype of Test2() and vice versa :

 

int CVICALLBACK timer (int panel, int control, int event,

void *callbackData, int eventData1, int eventData2)

{

switch (event)

{

case EVENT_TIMER_TICK:

if(g_Test2)

{

Test1();

}

if(g_Test2)

{

Test2();

}

 

break;

}

return 0;

}

 

Thank you in advance!!! 

 

0 Kudos
Message 1 of 2
(3,062 Views)
The problem was solved. I was not using unique pre-processors in test1 and test2 files.
0 Kudos
Message 2 of 2
(3,059 Views)