MyFunctions() is not a static function. This is the code of AccesoDatos.h (The real name of MyFunctions is ExisteBaseDatos)
-------------------------
#ifndef ACCESODATOS_H
#define ACCESODATOS_H
int ExisteBaseDatos(char *nombre, uint32_t creador);
#endif // ACCESODATOS_H
---------------------------
and this is the code of AccesoDatos.cpp:
---------------------------
#include "AccesoDatos.h"
int ExisteBaseDatos(char *nombre, uint32_t creador){
DatabaseID resultado;
resultado = DMFindBaseDatos(nombre, creador, dmFindSchemaDB, NULL);
return resultado;
}
-------------------------
And in AppMain.c I have the next code:
------------------------
.....
#include "AccesoDatos.h"
...
uint32_t PilotMain(...){
char hola[] = "pepito";
ExisteBaseDatos(hola,1111);
...
------------------------
Like you can see, it is a simple code. I have been changing a mistake and now I only have the error "In function `PilotMain':: undefined reference to `_ExisteBaseDatos' " in the line of 'ExisteBaseDatos(hola, 1111);'
Thanks :)
Ben Combee <[EMAIL PROTECTED]> escribió:
On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> How can i use diferent files in my code with Palm OS Developer Suite??
Is MyFunction() still declared as static in your header file? Static
functions are only visible in the file in which they are defined.
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
[EMAIL PROTECTED]>
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
