Quote Originally Posted by Kheun
As long as the variable and function are not being declared as static in file scope, you need to declare them as extern in your calling file.

Code:
// Original file
int temp;
void foo(void);


// Calling file 
extern int temp;
extern void foo(void);

void bar(void)
{
    foo();
}
Thankx it works !!!