hi
it would be great if u post ur code.so that debigging becomes easy...pls
attach ur code...

On Wed, Apr 14, 2010 at 2:15 AM, milan agrawal <[email protected]>wrote:

> Dear all,
>
> This platform is helping a lot in learning linux. And I wanna say thanks to
> all for this.
>
> Today when i was compiling a .cpp file using gcc or g++ command i got an
> error shown below:
>
> sph_r.cpp:1:22: error: iostream.h: No such file or directory
> sph_r.cpp:2:21: error: fstream.h: No such file or directory
> sph_r.cpp:4:21: error: iomanip.h: No such file or directory
> sph_r.cpp: In function ‘int main()’:
> sph_r.cpp:14: error: ‘ofstream’ was not declared in this scope
> sph_r.cpp:14: error: expected ‘;’ before ‘fp’
> sph_r.cpp:15: error: ‘randomize’ was not declared in this scope
> sph_r.cpp:16: error: ‘fp’ was not declared in this scope
> sph_r.cpp:16: error: ‘ios’ has not been declared
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:18: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:19: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:20: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:25: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:26: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:27: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:33: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:34: error: at this point in file
> /usr/include/stdlib.h:327: error: too many arguments to function ‘long int
> random()’
> sph_r.cpp:35: error: at this point in file
> sph_r.cpp:45: error: name lookup of ‘i’ changed for ISO ‘for’ scoping
> sph_r.cpp:45: note: (if you use ‘-fpermissive’ G++ will accept your code)
> sph_r.cpp:57: error: ‘endl’ was not declared in this scope
>
> this file was running properly in window using turbo cpp. Can anybody help
> me in resolving
> the issue? I tried to look at this on net but could not find much.
>
> Thanks in advance!!
>
>
> --
> With best regards,
>
> Milan Agrawal
>
> --
> l...@iitd - http://tinyurl.com/ycueutm
>

-- 
l...@iitd - http://tinyurl.com/ycueutm

To unsubscribe, reply using "remove me" as the subject.

Reply via email to