I am getting a linker error saying that 'myfunc' is unreferenced.  I am
trying to move some of my functions into a second segment so that I will
have a 'large' app instead of a 'small' app. This is because I have hit the
16-bit max for distance of jumps.

I am doing the following....

In segment 1:

static Boolean mymainfunc(CharPtr myString)
{

        extern Int mysecondfunc(CharPtr SomeString);
        Int x;

        x = mysecondfunc(myString);

        if (x>1)
                return true;
        else
                return false;

}

In segment 2:

static Int mysecondfunc(CharPtr SomeString)
{
        if (SomeString[0] != 'A')
                return 1;
        else
                return 2;

}

Any ideas why this function isn't being found by the linker????

Very truly yours,

Rob G.




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