FWIW, the reason that the problem appears only after the switch statement
has a certain number of members is that the compiler tries to be somewhat
intelligent about switch statements. Different implementations are used
depending upon number of cases, etc.
-jjf
-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 03, 2001 2:49 PM
To: Palm Developer Forum
Subject: Re: __wswtch__ is undefined
"Clark Dorman" <[EMAIL PROTECTED]> wrote in message
news:34588@palm-dev-forum...
>
> Greetings,
> I have a switch statement in a function, but
> on my 4th case statement (plus a default), I get the link
> error in the subject line. I looked in the archives and
> saw that Danny Epstein said (11 Oct 2000) that __wswtch__
> is "the Word (ie. 16 bit) switch function in the startup
> library".
>
> First, my function is part of a plug-in, so, like
> a shared library, I have my own startup function and am
> not using the startup library. Second, I don't understand
> why this would manifest itself after adding a fifth
> case statement. So, I'm confused.
Link with the CW startup library anyway, just make sure it is listed in the
link order/segment list after your startup code. You should only have the
__wswtch__ and related compiler code linked into things. If you don't like
this, then just include the appropriate source file from the CW runtime
directly in your project -- search the CW runtime source tree to find the
right one.
--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/