multiple definition of main first defined here

前端 未结 3 1250
予麋鹿
予麋鹿 2021-01-29 04:37

I\'m new to programming and currently I\'m learning C programming. I\'m writing codes on the code blocks and in it using GCC compiler. When I create a new project, (as you know

3条回答
  •  暖寄归人
    2021-01-29 05:00

    I guess what you maybe trying to do is have multiple sandbox "gists" that you may wanna run all as their own main function. If that is the case, then just close your project and open the files directly. As long as they are not in a project, they will run fine.

提交回复
热议问题