Hi,

first, the error - add "-l fprint" (or similar) to your linker flags (if you 
are 
doing compile and link in one step then simply "gcc some_other_options -l 
fprint filename.c -o outputname")
and for the warning - I have no idea what is wrong, API docs say fp_init does 
indeed return an int. (but warning does not kill the compilation)

Hope this helps,
Pavel Herrmann


On Wednesday 26 May 2010 07:29:51 Mahendra wrote:
> 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
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint

Reply via email to