Closed Thread Icon

Preserved Topic: new to c (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=16438" title="Pages that link to Preserved Topic: new to c (Page 1 of 1)" rel="nofollow" >Preserved Topic: new to c <span class="small">(Page 1 of 1)</span>\

 
Inition
Bipolar (III) Inmate

From: Illinois Valley
Insane since: Jan 2002

posted posted 03-27-2002 02:21

I guess I have to learn a little bit of everything....
I'm starting to learn some c, in linux, I use gcc to compile a short proggy, and I get an a.out file. how would I run this file? typing a.out in konsole doesn't do anything
In windows, after compling I get a .dsp .dsw .opt files. what program do I run these files with? and which file usually gets ran?
its just simple printing text programs, I'm just too slow to get it on my own

silence
Maniac (V) Inmate

From: soon to be "the land down under"
Insane since: Jan 2001

posted posted 03-27-2002 03:41

Try typing:

./a.out

This works with bash in unix so it should work on linux.

Also, try changing the attribute on the file to executable:

chmod u+x a.out

If that doesn't help, give me an exact error description.

And I don't do windows coding troubleshooting. I'd rather shoot myself in the nuts. But I will give you a little help.

The .dsp, .dsw, and .opt files are the project and workspace files. They have nothing to do with running the program. There should be a debug folder with a .exe file. That is the generated executable.

« BackwardsOnwards »

Show Forum Drop Down Menu