2010-05-03 36 views
0

使用Mac OS X 10.6,蟒蛇3.1和GCC 4.0試圖將其轉換到Python 3.1打造python2.6的實施pyfsevent時。獲取語法錯誤使用Python 3.1構建,而不是與Python 2.6

想知道當獲得以下錯誤,而在python 3.1建設單獨。與Python 2.6構建時

爲什麼不呢?

error: syntax error before ‘CFFileDescriptorRef’ 

warning: no semicolon at end of struct or union 

error: syntax error before ‘}’ token 

warning: data definition has no type or storage class 
+4

請出示的代碼。 – notnoop 2010-05-03 12:25:04

回答

0

運行2to3時C代碼不會被轉換,您需要手動移植它。