How to use GCC with Microsoft Visual Studio?

前端 未结 3 669
萌比男神i
萌比男神i 2020-11-28 06:08

I am creating a very large project (a few thousand lines) and so would rather not use Notepad++. An IDE would make it so much easier. I have experience with Microsoft Visual

3条回答
  •  悲&欢浪女
    2020-11-28 06:51

    I'm from the future.

    I keep (poking at) a C/C++ toolchain using Visual Code on Win/Lin/Mac and MinGW installed from Choclatey. (This was done for my sanity - install GDB and GCC however you want)

    I've run it with GCC and GDB with IntelliSense using MS's own weird JSON makefiles. Someday, someone (you?) will write a Gradle or Python script to generate these; for now the examples online in the docs seem to work.

    It seems to require three types of JSON thing;

    • a single IntelliSense configuration for the whole workspace
    • a Debugging Configuration entry for each binary you want to debug
      • these can invoke the build tasks
    • a Build Task per-artifact
      • I don't think that there's a "require" or "dependency" thingie-mah-bob; sorry

提交回复
热议问题