At 01:30 PM 7/9/2005, you wrote:
Hi,

This code:

 static void *labels[] = {&&_TRIGGERING_PARAM,
&&_LINEAR_SECURITY_LEVEL_PARAM, &&_SUPPLEMENTALS_PARAM};

 _TRIGGERING_PARAM:
         err = ScanSetTriggeringModes(value);
         goto *labels[type];
      _LINEAR_SECURITY_LEVEL_PARAM :
         err = ScanSetLinearCodeTypeSecurityLevel(value);
         goto *labels[type];
      _SUPPLEMENTALS_PARAM         :
         err = ScanSetDecodeUpcEanSupplementals(value);
         goto *labels[type];

Ends with a:

Link Error   : SymbolPalmNatives.c: '@350' referenced from 'labels$349' is
undefined.
Link Error   : SymbolPalmNatives.c: '@351' referenced from 'labels$349' is
undefined.
Link Error   : SymbolPalmNatives.c: '@352' referenced from 'labels$349' is
undefined.

Any clues of what might be wrong?

I don't ever remembering testing computed labels with that compiler. My guess is that the compiler emitted relocations for the three labels, but they didn't ever emit the symbols that will hold the computed addresses. Can you use computed goto anywhere in your code?

-- Ben Combee, Senior Software Engineer, palmOne, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Forum Archives:   http://news.palmos.com/read/all_forums/


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

Reply via email to