2010-05-03 37 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代码不会被转换,您需要手动移植它。