Hello

This is the first time I program with Palm OS Developer Suite and the fist time 
I program to Palm OS. I have a little problem. I would like to have my code in 
diferent files, but i can´t. For example:

Now I have all my code in AppMain.c:

--------------------------

static int MyFunction(){
...
}

uint32_t PilotMain(..){

...
if (MyFunction())
....

}
---------------------------

However, I would like to have a MyFile.h and MyFile.cpp where code of 
MyFunction were. So I am trying:

--------------------------
...
#include "MyFunction.h"
...

uint32_t PilotMain(..){

   ...
   if (MyFunction())
   ....

}
------------------------

The problem is that i get this errors en MyFunction´s line:

- In function `PilotMain':: undefined reference to `_MyFunction'
- undefined reference to `_MyFunction'
- warning: implicit declaration of function `MyFunction'  


How can i use diferent files in my code with Palm OS Developer Suite??


Thanks and sorry by the bad english
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to