Hopefully this is an easy question.
 
I have been developing my first Palm App using Code Warrior, and things are going 
well.  I only have two source files (one .cpp and one .h) and they are getting pretty 
big.  I want to break them up into several files.  But when I do this I get errors.
 
If I add two new files (one .cpp and one .h)  I get the follow error when attempting 
to call a function located in the new .cpp file:
 
Link Error   : MyMain.cpp: 'FuncName(unsigned short,char*,unsigned char)' referenced 
from 'MainFormDoCommand(unsigned short)' is undefined.
 
I have the prototyes in the new .h file and am including the .h at the head of my main 
.cpp file.
 
If I include the .cpp file instead of the .h file I can get this to work some of the 
time, but have seen a couple of strange things (that I can't duplicate at the moment.)
 
Both .cpp file are listed under "Source" in the project window, and both .h files are 
listed under "Headers" in the project window.
 
I am used to VC++ and Borland compilers so maybe I am misunderstanding something in 
the way CW works.
 
I would appreciate it if someone could give me a brief overview of how to manage file 
source files within a CW project.
 
TIA,
 
Dan

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to