![]() So write this article, hoping to help people in need. ![]() At this time, using the terminal for execution can solve this problem. how to run makefile in c, Makefiles are used to help decide which parts of a large program need to be recompiled. However, when completing the course design, I found that Xcode has certain problems with writing Chinese. Most people who use mac programmers choose Xcode to write c/c++ programs. ![]() Note: main.cpp should be rewritten to the corresponding name of your own programġ) If you are prompted to Permission Denied, it is because you have not given the file execution permission, you need to enter the following in the terminal to make it executable under your account.Ģ) If a Segmentation Fault appears during runtime, it means that there is a bug in your code that causes the program to crash. Here you can enter cd first and then drag the folder to the terminal.Įnter and press Enter, you can see the generated exe and dSYM in the written c/c++ folder Open the terminal and enter the directory where the cd file is located
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |