Re: getting an error in a program
- From: Nils Kassube <kassube@xxxxxxx>
- Date: Mon, 6 Jun 2011 07:22:25 +0200
sudhanshu gupta wrote:
Its a IrisGL program I am attaching i am getting an error
sudhanshu@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 *'
Can anyone tell me how to remove that....
The error message tells you that for format '%d' there should be an int
object but you are using a float object. As you want to use a float
object you need format '%f'. Therefore change line 142 from
fscanf(infile,"%d",&coord);
to
fscanf(infile,"%f",&coord);
Nils
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: getting an error in a program
- From: Ric Moore
- Re: getting an error in a program
- References:
- getting an error in a program
- From: sudhanshu gupta
- getting an error in a program
- Prev by Date: getting an error in a program
- Next by Date: Re: getting an error in a program
- Previous by thread: getting an error in a program
- Next by thread: Re: getting an error in a program
- Index(es):
Relevant Pages
|