Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to be able to build and execute the currently opened C file using a shortcut like in IDEs as I don't want to type a command every time I run.
Use a shell script that compiles and executes the file.
gcc file.c
./a.out
only works if you work with one file or #include, or you have to add the other files to the compiler.
As you probably work with a text editor, there are no other options than this, or doing it manually.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I recently install windows subsystem linux
when I try to execute the C program it says no directory exists
gcc one.c -one
Does not do what you want, if you want one to be name of output file use -o option as below.
gcc one.c -o one
Then,
./one
will work
By default name of the executable generated is
./a.out
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have recently downloaded an application file in the .c format. I want to convert it to an exe file so that i can run it. I also tried to download a compiler but I was unsuccessful. Can anyone help?
you could use an online complier such as this website
Can I compile a .c file to .exe file without a compiler?
No
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was browsing the go source and I wanted to build it as a standalone linker for osx that can generate mach-o files. Is there anyway to do this?
The linker is already a standalone tool. You can see it by running
go tool -n 6l
which will print the location of the 6l (x86 64 bit linker) executable.
The source code of 6l can be found in GOROOT/src/cmd/6l.
In that directory you can use make to build it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to make a program that reads the name of a (.mp3) file from a folder and then re-name it. I want to know how to do so.
Please give me an example on how to read a (.mp3) file name and save it, and also point to me things that I should know to make this program.
I'm on windows and using VS2013.
You might like to use the rename() function.
To scan a directory you can use a combination of FindFirstFile() and FindNextFile() calls.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am trying to make a c program that will open my internet apps e.g. chrome, thunderbird etc.
When i am using the
system("")
function i have to do it all in one line cause everytime i reuse it, it resets my directory to where the c project is saved.
How is that possible?
Depend on what system & shell you're on, the syntax may be different
On Windows cmd just use && or &. For example
notepad && mspaint
calc & dir
&& will run the second command if the first completed successfully. & will run the command in the background on Linux/Unix, whereas it'll run the first then the second command in Windows