undefined reference to `pin_init`

Shakthi Kannan shakthimaan at gmail.com
Sat Aug 18 15:12:44 CEST 2007


I am trying to write a simple standalone application with libgsmd. I
am using this 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");

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

More information about the openmoko-devel mailing list