search

Home  >  Q&A  >  body text

mingw - codeblocks编译c可以,编译c++一堆错误

高洛峰高洛峰2803 days ago549

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 14:46:46

    I installed it and it was ready to use. I wanted to use codeblocks again to do winsock programming. I changed the compiler, and then it was the same as you.
    I have tried many methods like you, but to no avail.

    After I unchecked all the previously checked options, there was no problem after that:

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:46:46

    Change the Global Compiler settings in your C++ compiler to mingw32-g++.exe
    and use gcc to compile cpp. Although it works fine under linux~~ it may not work under windows. . :)
    Also Linker for dynamic libs on my machine. mingw32-g++.exe

    reply
    0
  • Cancelreply