How to determine which linker is used by my gcc?
For example I have 3 linkers:
2 in one directory, same place as for gcc
and another one linker in another directory.
GCC stands for GNU Compiler Collections which is used to compile mainly C and C++ language. It can also be used to compile Objective C and Objective C++.
Clang can be configured to use one of several different linkers: GNU ld. GNU gold. LLVM's lld.
The linker is a program that makes executable files. The linker resolves linkage issues, such as the use of symbols or identifiers which are defined in one translation unit and are needed from other translation units. Symbols or identifiers which are needed outside a single translation unit have external linkage.
DIFFERENCE BETWEEN g++ & gccg++ is used to compile C++ program. gcc is used to compile C program.
You may add -Wl,-verbose
to your gcc
link command or use
gcc -print-prog-name=ld
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With