Ok-
I still don't have an answer, but I know what is causing the problem. If I
use the multisegment stationary and just build a virgin palm application, I
include the library and a single call to the following prototype: UInt16
SetActiveService(DmOpenRef dbID, UInt32 *serviceIDPtr,Boolean
forceUpdate); it links fine. If, however, If in the project preferences I
select "Activate C++ Complier" I get the following link error: Starter.c:
'SetActiveService(void*, unsigned long*, unsigned char)' referenced from
StarterPalmMain is undefined.
How do I tell the linker that this is a C call (not a c++) call and the
prototype is correct, just use the damn thing.
PS, don't tell me to turn off the C++ compiler, that is not an option for
my project.
Thanks for any help anyone can give me.
signed-
Frustrated (aka, [EMAIL PROTECTED])
Ted Lowery wrote:
> Hi all-
>
> I'm having trouble with the NetServiceAPILib. Basically, if I include
> the lib in a single segment C project, everything works fine. But when
> I try to include the lib in a multisegment project with the MSL 2i lib,
> my code compiles fine, but the linker cannot find any of the calls
> within NetServiceAPILib. I have another lib in my project as well, the
> PalmOSGlue lib, and that lib is working fine. Is there something I am
> missing with multisegment apps?
>
> PS, the NetServiceAPILib and the calling code are all in the same
> segment, not that that should matter.
>
> Thanks,
> [EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/