Eclipse c++ 中[Linker error] undefined reference to `[email protected]’的解决办法


出现原因: 在Eclipse中使用MinGW编译器的API,底层调用的是windows系统的API函数,需要链接windows的库。

问题解决:
右键工程->Properties->C/C++ Build->Settings->Tool Settings->MinGW C Linker,在Command line pattern中添加标记-lws2_32,再次编译即可!

效果如下图:

Eclipse c++ 中[Linker error] undefined reference to `[email protected]‘的解决办法


ends…

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2021-10-12
  • 2022-01-11
  • 2021-05-20
猜你喜欢
  • 2021-04-15
  • 2021-05-05
  • 2021-10-03
  • 2022-12-23
  • 2021-08-03
  • 2021-07-08
  • 2021-04-16
相关资源
相似解决方案