On 25 November 2007 18:06:59 [EMAIL PROTECTED] wrote:
> Hello everybody,
>
>
> I try to use the libfrint library to make a c++ application.
> I wrote a simple test program with a fp_init() and a fp_exit().
> the compilation is ok but the link with -lfprint doesn't work.
>
> [EMAIL PROTECTED]:~/Projects/src$ gcc -lfprint flaunch.c <---- working
>
> [EMAIL PROTECTED]:~/Projects/src$ g++ -lfprint flaunch.c <---- error
> /tmp/ccc3nYNS.o: In function `main':
> flaunch.c:(.text+0x5): undefined reference to `fp_init()'
> flaunch.c:(.text+0xa): undefined reference to `fp_exit()'
> collect2: ld a retourné 1 code d'état d'exécution
>
>
> someone could explain me why there s this problem ?
>
>
> thanks.
>
> grumpy
> luc bertrand
> SW engineer
>
> _______________________________________________
> fprint mailing list
> [email protected]
> http://lists.reactivated.net/mailman/listinfo/fprint
This will help you:
extern "C"
{
#include <fprint.h>
}
Regards
Vasily
P.S. I suggest to read "Advanced linux programming" ;) You can find pdf in
web.
_______________________________________________
fprint mailing list
[email protected]
http://lists.reactivated.net/mailman/listinfo/fprint