<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
<BR>
I'm trying to create a new cursor which can be used with the XCURSOR cursor management library.<BR>
I have a picture which I converted to a png format and then used the "xcursorgen" to create a cursor file from.<BR>
In my C code I then used the following set of commands in order to read the cursor file:<BR>
<BR>
FILE *pFile;<BR>
pFile=fopen("test.png","r");<BR>if (pFile!=NULL)<BR>{<BR> printf("Reading File\n");<BR> cursor=XcursorFileLoadImage(pFile, 100); <BR> fclose (pFile);<BR>}<BR><BR>
when trying to compile my code, I get the following error:<BR>
: undefined reference to `XcursorFileLoadImage'<BR>
<BR>
It seems that i'm not giving the function what it is expecting, however, i'm not sure what I'm doing wrong.<BR>
I also tried reading the file in binary format using: pFile=fopen("test.png","rb"); however this did not help either.<BR>
<BR>
Can someone please help me resolve this ?<BR>
<BR>
Thanks,<BR>
<BR>
M<BR>
<BR><br /><hr />What can you do with the new Windows Live? <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>Find out</a></body>
</html>