跳到主要內容

關於 新手寫程式 或很久沒寫程式的問題

太久沒寫程式
就忘了標準流程
打開code-block和geany後新建直接開始打(empty file)
然後你就會發現靠背 怎麼編譯不過去
make: *** No targets specified and no makefile found. Stop. for geany

or permission denied (in terminal) Nothing to be done. (in build log) for code-block

然後你就會開始怪東怪西 靠背靠木
最終發現 因為副檔名不是cpp (due to the  file extension it cant identified)
geany可以在新建旁邊找 .cxx的檔案(in geany find create new with .cxx)
code-block則要新增project                    (create with project)

最快的作法就是直接新增檔案 然後先給cpp 的副檔名然後直接用
geany or code-block 開啟是最快的
(the fastest way is create a file on desktop and give it a extension with .cpp)




有時候蠢問題可以浪費人的一整天

像是之前 ubuntu ati nonfree driver 讓我整整重灌了兩天
發現一灌驅動(from fglrx) 我的gnome.3 面板就破圖了 (penal break)
最後就用內建的驅動
785內建顯卡 驅動灌下去就開始卡 整個就無言 under ubuntu 11.10 ccc 10.8

怎麼離題了...

留言