Well, I think you should change your calling convention.  (eg 
Boolean MainFormHandleEvent(EventPtr eventP);
to
extern Boolean MainFormHandleEvent(EventPtr eventP);)

Also, include all your .c files into the project, as well
as all accompanying header files.

-Rus

>-----Original Message-----
>From: Jim Duffy [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 03, 2000 3:29 PM
>To: Palm Developer Forum
>Subject: Link Error help needed
>
>
>Hi everyone,
>
>as a novice to C and C++ as well as palm programming.
>
>I am working on my first palm program now which I started 
>using the standard
>palm os 3.1 stationary provided in Code Warrior.
>
>I have about 7 forms all working together fine.  I have been 
>dumping all the
>related functions into the Starter.c file.
>
>I am now trying to separate this file into smaller more 
>organized files but
>having difficulty getting it to work.
>
>right now I only moved the MainForm functions into a file 
>named MainForm.c
>and then included all its defines into MainForm.h.
>
>I then added both these files to the project and then added 
>MainForm.h at
>the top of Starter.c
>
>In addition, I also included all the other #includeds found at 
>the top of
>Starter.c into MainForm.c and also included its own .h file.
>
>All the file Compile with no trouble, but I keep getting a 
>Link Error that
>says:
>
>Starter.c 'MainFormHandleEvent' referred from 'AppHandleEvent 
>is undefined.

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