I've a function declared in a file in a directory, say, abc. main/abc/getcm.c
XAPUBLIC int get_cm_name(cm_name)
I've to use this function in another directory, say def. main/def/takecm.c
status = get_cm_name(cm_name)
How can i access this function 'get_cm_name' in 'def' directory using extern. I understand that i can use a header file under 'main' directory to declare this function. Is there an alternative of doing it using extern function.