undefined reference to `pin_init`
Shakthi Kannan
shakthimaan at gmail.com
Sat Aug 18 15:12:44 CEST 2007
Hi,
I am trying to write a simple standalone application with libgsmd. I
am using this Makefile:
http://free-opensource.qvantel.net/mediawiki/index.php/OpenMoko_Hello_World_Debian#Standalone_Makefile
I have included pin.h in my simple main.c.
#include <libgsmd/libgsmd.h>
#include "pin.h"
...
struct lgsm_handle _lgsm;
char *pin = NULL;
...
lgsmh = lgsm_init(LGSMD_DEVICE_GSMD);
if (!lgsmh) {
g_debug("Can't connect to gsmd\n");
exit(1);
}
...
The above works, but, when I call:
pin_init(lgsmh, pin);
I get undefined reference to `pin_init`. So, the linker is not able to
find the libgmsd libraries? What am I missing in the Makefile?
Appreciate any help. Thanks,
--
Shakthi Kannan
http://www.shakthimaan.com
More information about the openmoko-devel
mailing list