1)“File -> New -> Project”,选择“Empty Project”并创建。
2)选中 Project,右键,选择“Add files”,将 c/c++ 和 head files 加入工程。
3)选中 Project,右键,选择“Properties”,“Project settings”选项卡中的“Makefile”填入
Makefile 文件名,并勾选“This is a custom Makefile”。
4)选中 Project,右键,选择“Build options”,删除“"Make" command”选项卡中所有的“$target”
目前无法找到设置环境变量的方法,虽然编译前可以执行命令,但是source命令无效 据说有一个插件可以设置 You could also use the envvars plugin (Settings -> Environment -> Environment variables).BUT: This may overwrite an already existing PATH variable. So the pro is: You can fully control what PATH is setup but you have to be careful not to forget some already existing PATH setup.
BTW: This change would only apply to the focus of C::B then, whereas the change as described by stahta01 is system wide (at least logon-wide)... depends on what you want.
With regards, Morten. 现在的办法是现在控制台将环境变量设置好,然后从控制台启动codeblocks 标签:code,blocks,Makefile,Project,选中,右键,PATH From: https://www.cnblogs.com/zxdplay/p/18427266