18 Mar 2009

Fix compile ERROR using Geany

If you meet the following error while compile C file by using Geany.

18:53:55: 无法执行“ /home/daniel/code/test”(请确保已生成)
18:53:55: 执行虚拟终端程序失败
Check the option under Build menu, and change the compile parameters as

##CONTINUE##

gcc -Wall -o "%e" "%f"
Then you can use the buttons in toolbar to compile and execute programmes.

由于geany的默认设置下,工具栏那个编译按钮并没有生成可执行文件,所以需要手动更改,加上-o参数来指定生成文件即可.

No comments :

Post a Comment