I am using CW 6 and I have the following code:

template <class WIZARD_TYPE> Boolean DW_WizardHandleEvent( EventPtr pEvent );

template <class WIZARD_TYPE> Boolean DW_WizardHandleEvent( EventPtr pEvent )
{
...
}

ApplicationHandleEvent()
{
...
FrmSetEventHandler(CurrentFrm, DW_WizardHandleEvent<DW_RS232Wizard>);
...
}

This compiles fine, but generates a link error, saying

Link Error  ...:Src:main.cpp:
'DW_WizardHandleEvent<14DW_RS232Wizard>(EventType*)' referenced from
'ApplicationHandleEvent(EventType*)' is undefined.

_WizardHandleEvent<14DW_RS232Wizard>(EventType *)'
Wizard.h line 102   template <class WIZARD_TYPE> Boolean
DW_WizardHandleEvent( EventPtr pEvent );



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to