笨猪今天抽风,又玩起来codeblocks ,这是自打长期使用ubuntu系统以来第一次使用codeblocks写程序。理所当然的在ubuntu的软件中心里下载了codeblocks 10.05 ,然后创建CPP文件,编译之,运行之~
不对,编译器没找到?好像是写道 "filename - Release" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.
这个是编译器没找到,不过编译器我之前肯定装过了,因为可以在终端里,gcc -g aaa.c ,好使。那就是编译器路径问题了,于是乎,我在网上一顿找gcc安装时候的默认路径,楞是没找到,(可能是没细心),最后,发现了一个超简单方法:
setting-> complier and debugger -> Toolchain excutable 目录选择文件系统,然后点击aotodetect。或者直接在地址栏输入 /usr。然后,problem solved~!