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 9 years ago.
Improve this question
Where is the directory normally located? For example, when you compile headers that have function prototypes which are linked to the GCC source library? I ask because I just downloaded slab.c which has the kmalloc function(got a link error from compiling another header so now I have a source code file that implements it).
This:-
`gcc -print-prog-name=cc1` -v
command is used by gcc to check for headers file.
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 1 year ago.
Improve this question
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\manth\.vscode\Untitled-1.c)
cannot open source file stdio.h in vs code
Make sure your includePath doesn't contain any system headers and your compilerPath is set correct and then run C/C++: Log Diagnostics and see if the output appears correct or not.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
AFAIK, Some part of C compilation phases can be multi-threaded.
For example, At least Preprocessing and Parsing (creating AST) is only related its source file itself so each file can be parallelized.
Is there any reason that GCC has no multi-threaded compile option?
You can build C/C++ in paralell if you use and setup a proper build system, which handles this for you.
Basically in C/C++ every .c/.cpp file is complied to an .o file. All these .o files are then linked to the resulting binary.
A build system (make for instance) can be used, to build all the .o files in paralell.
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.