幾個gcc的錯誤提示。

 好吧,我真的很菜。

http://topic.csdn.net/u/20120611/17/4194D48A-A386-4B3C-AF4E-930E81F60877.html

m_array.c:9:9: error: expected declaration specifiers or ‘...’ before string constant

m_array.c:9:29: error: expected declaration specifiers or ‘...’ before ‘g_time_tab’

想寫個簡單的測試代碼段。結果哦沒有寫main函數。直接pirntf,編譯時的錯誤提示。
 
 
然後加了main,沒有寫成main()的編譯提示。
 
m_array.c:9:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
關鍵是這麼傻瓜的錯誤,google找不到。。。。。。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章