#use must be in .c file?

Hello,

I have created 2 modules. One is the main module and the other is an optional debug support for that module. References to the debug routines are controlled via conditional compile of the main module so I inlcluded the #use in main module. However the symbols in the debug module will not resolve unless I put the #use in main.c even though it is not called from there.

comm.lib
#ifndef __COMM_LIB
#define __COMM_LIB

#define DEBUG_ME
#ifdef DEBUG_ME
#use “comm_debug.lib”

/*** BeginHeader com_send /
void comm_send();
/
** EndHeader */
void comm_send()
{
#ifdef DEBUG_ME
call_debug_function();
#endif
}

comm_debug.lib
/*** BeginHeader call_debug_function /
call_debug_function()
/
** EndHeader */

main.c

#use “comm.lib”

main(){
comm_send();
}

The above does not work unless I include #use “comm_debug.lib” in main.c