getting an error in a program

sudhanshu gupta sudhanshugupta2511 at gmail.com
Mon Jun 6 04:45:45 UTC 2011


hi

Its a IrisGL program I am attaching i am getting an error


sudhanshu at sudhanshu-laptop:~/isosurface$ gcc isonm.c
isonm.c: In function 'readFile':
isonm.c:142: warning: format '%d' expects type 'int *', but argument 3 has
type 'float *'
isonm.c: In function 'main':
isonm.c:344: warning: passing argument 1 of 'getorigin' from incompatible
pointer type
/usr/include/gl/gl.h:601: note: expected 'Int32 *' but argument is of type
'long int *'
isonm.c:344: warning: passing argument 2 of 'getorigin' from incompatible
pointer type
/usr/include/gl/gl.h:601: note: expected 'Int32 *' but argument is of type
'long int *'
isonm.c:381: error: 'GD_ZMAX' undeclared (first use in this function)
isonm.c:381: error: (Each undeclared identifier is reported only once
isonm.c:381: error: for each function it appears in.)


Can anyone tell me how to remove that....

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110606/629763c3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: isonm.c
Type: text/x-csrc
Size: 15785 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20110606/629763c3/attachment.c>


More information about the ubuntu-users mailing list