search

Home  >  Q&A  >  body text

请问在C++编译时经常出现的ld return 1 exit 中的ld是什么意思?

如题,就是在很多的地方都可以看到ld这个单词,但是这个单词究竟是什么意思呢?

最常见的就是在C++编译的时候出现的 ld return 1 exit

在网上也没有找到关于ld的文章,请问这个是什么意思?

PHP中文网PHP中文网2767 days ago706

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 11:52:58

    ld.exe is the linker;
    During the compilation process of C++, the precompiler is responsible for expanding precompilation commands (#define and so on), the compiler is responsible for compiling C++ code into assembly code, the assembler is responsible for compiling assembly code into .o object files, and the linker is responsible for Multiple .o files are linked into one executable file
    As we mentioned above, the final executable file is generated by the linker (ld.exe). If the executable file cannot be written during compilation (for example, the directory is read-only, or the old version of the executable file compiled before is being running, or occupied by a debugger or something), of course the error is reported by ld.exe, which is what you see under the IDE ld return 1 exit

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:52:58

    Possible origins of the name "ld" are "LoaD" and "Link eDitor"
    http://en.wikipedia.org/wiki/GNU_linker

    reply
    0
  • Cancelreply