Make sure that function 'MainFormHandleEvent' is not declared as static.
You should also put a function prototype in the header file (MainForm.h) for
the module (MainForm.c) that includes 'MainFormHandleEvent'.  You must do
this for any function that you call from outside the module (.c file) that
it is contained in.  Hope this solves your problem.
Regards,
Steve

-----Original Message-----
From: Jim Duffy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 03, 2000 6: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.

Does anyone know what might be causing this error or how to fix it???

My roomate (an experienced windows programmer) could not figure this out, so
I am wondering if it has something to do with Code Warrior itself.


Thank you very much for the help and I apologize for this kind of long post.

Jim









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

Reply via email to