[fprint] Undefined reference error
Mahendra
mahendrakariya at yahoo.co.in
Wed May 26 06:29:51 BST 2010
Hello,
I am just trying to make a simple program using libfprint API. The source code of my program is below.
_____________________________________________________________________________________
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libfprint/fprint.h>
int main()
{
int r = 1;
struct fp_dscv_dev **dev_devices;
r = fp_init();
if(r < 0)
{
fprintf(stderr,"Failed to initialise libfprint\n");
exit(1);
}
dev_devices = fp_discover_devs();
return (EXIT_SUCCESS);
}
_____________________________________________________________________________________
I am unable to compile this program. When I compile I get this error
_____________________________________________________________________________________
DeviceDiscovery.c: In function ‘main’:
DeviceDiscovery.c:10: warning: assignment from incompatible pointer type
/tmp/ccmoTdYI.o: In function `main':
DeviceDiscovery.c:(.text+0x9): undefined reference to `fp_discover_devs'
collect2: ld returned 1 exit status
_____________________________________________________________________________________
Any solution?
Regards,
Mahendra Kariya
http://www.mahendrakariya.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.reactivated.net/pipermail/fprint/attachments/20100526/0a1f55e7/attachment.html
More information about the fprint
mailing list