Results 1 to 3 of 3
Hey guys
Even i got a doubt on similar lines. Saving my C code in gedit seems to be giving me loads of errors even though the program is fine. ...
- 03-06-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 3
change gedit so format doesnt change
Hey guys
Even i got a doubt on similar lines. Saving my C code in gedit seems to be giving me loads of errors even though the program is fine. It is something to do with the format in which gedit is sotring the code.
Could some1 help me out regarding wat settings to change in gedit so tht the format doesnt change?
I had read a similar thread on this but extensive searching and still havent found it. Any help would be appreciated.
Thanks
Phro
- 03-06-2008 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
Well, posting the errors is for free and would certainly help us on guessing what the problem is. Otherwise we will need to use our psychic powers. And believe me, you don't want that to happen :P
I am not familiar with gedit, but if I am not mistaken it should save the file as plain text. Other than that, you just need to make sure that the last line has a carry return on it, and the rest, should be fine. So I am inclined to think that:
1.- you saved the file in a wrong format in case that gedit supports that (I don't really know).
2.- your program has syntactical errors.
- 03-06-2008 #3Just Joined!
- Join Date
- Jan 2008
- Posts
- 3
Hey
I am sorry for not posting the errors. The deal is any running program stops running once i open it with gedit and save without making changes to it. Once i replace this program with the old working program it starts working. Like i just ran this piece of code and it worked fine. I used the command "touch" on the C file and on compiling there was an error shown. It s a really weird error. Just simply "touch" should not be giving errors like this.
Error:
xdc/std.h : No such file or directory
trace/gt.h : No such file or directory
Mind you i am typing and not copying these errors since my linux PC does not have intenet connection.
Thanks for the time taken to reply
Regards
PhroLast edited by phro; 03-06-2008 at 01:39 AM. Reason: typos


Reply With Quote
