On Tue, 9 Jun 2009 06:41:37 +0000 Meir Goldenberg <[email protected]> mentioned:
>
> Hi,
>
>
>
> I'm trying to create a new cursor which can be used with the XCURSOR cursor
> management library.
>
> I have a picture which I converted to a png format and then used the
> "xcursorgen" to create a cursor file from.
>
> In my C code I then used the following set of commands in order to read the
> cursor file:
>
>
>
> FILE *pFile;
>
> pFile=fopen("test.png","r");
> if (pFile!=NULL)
> {
> printf("Reading File\n");
> cursor=XcursorFileLoadImage(pFile, 100);
> fclose (pFile);
> }
>
>
> when trying to compile my code, I get the following error:
>
> : undefined reference to `XcursorFileLoadImage'
>
>
>
> It seems that i'm not giving the function what it is expecting, however, i'm
> not sure what I'm doing wrong.
>
> I also tried reading the file in binary format using:
> pFile=fopen("test..png","rb"); however this did not help either.
>
>
>
> Can someone please help me resolve this ?
>
You obviously missing -lXcursor in you compile string. This has nothing to do
with the code itself.
--
Stanislav Sedov
ST4096-RIPE
pgpKEDYCL2lHK.pgp
Description: PGP signature
_______________________________________________ xorg mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/xorg
