"Oliver King-Smith" <[EMAIL PROTECTED]> wrote in message
news:70761@palm-dev-forum...
>
> 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 );

I'm not sure.  I just tried this code on CW Palm 8, and I got a valid
template function generated.  Can you do a "Disassemble" on the source
file that has your template call and see if the template function
instance is being generated?



-- 
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