Bright Leopold

i come from the other world,i will go back after the love,the regret,the alive and the dead are over

导航

codeblock 生成和使用makefile

下载cbp2make 文件名:cbp2make-stl-rev138.tar.gz

里面有个cbp文件用codeblock打开,编译,生成的bin目录下有个执行文件.

使用命令生成Makefile

./cbp2make -in XXX.cbp -out Makefile

 

 

使用:

1)“File -> New -> Project”,选择“Empty Project”或者“console application“并创建。
2)选中 Project,右键,选择“Add files”,将 c/cpp 和 head files 加入工程。
3)选中 Project,右键,选择“Properties”,“Project settings”选项卡中的“Makefile”填入Makefile 文件名,并勾选“This is a custom Makefile”。
4)选中 Project,右键,选择“Build options”,删除“"Make" command”选项卡中所有的“$target”。

5)修改已有的Makefile,使输出路径为codeblocks默认路径,否则会一直提示你没有build

posted on 2018-01-12 16:23  Bright Leopold  阅读(1764)  评论(0编辑  收藏  举报