Closed cirla closed 5 years ago
Not sure why this is breaking for 2.7 but works for 3.6. Example error when compiling:
C:\Users\appveyor\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ilibindicators -Itulipy/lib -IC:\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tclibindicators/tiamalgamation.c /Fobuild\temp.win32-2.7\Release\libindicators/tiamalgamation.obj tiamalgamation.c libindicators/tiamalgamation.c(1888) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1888) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1888) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1888) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1888) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1888) : error C2065: 'output' : undeclared identifier libindicators/tiamalgamation.c(1888) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1888) : error C2109: subscript requires array or pointer type libindicators/tiamalgamation.c(1888) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1889) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1889) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1889) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1889) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1889) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1889) : error C2065: 'output' : undeclared identifier libindicators/tiamalgamation.c(1889) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1889) : error C2109: subscript requires array or pointer type libindicators/tiamalgamation.c(1889) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1900) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1901) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1902) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1903) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1903) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1903) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1904) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1904) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1906) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1906) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1906) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1906) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1906) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1906) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1906) : warning C4244: '+=' : conversion from 'const double' to 'int', possible loss of data libindicators/tiamalgamation.c(1908) : error C2065: 'output' : undeclared identifier libindicators/tiamalgamation.c(1908) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1908) : error C2109: subscript requires array or pointer type libindicators/tiamalgamation.c(1908) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1912) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1912) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2065: 'output' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2109: subscript requires array or pointer type libindicators/tiamalgamation.c(1912) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1912) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1927) : error C2143: syntax error : missing ';' before 'const' libindicators/tiamalgamation.c(1928) : error C2143: syntax error : missing ';' before 'const' libindicators/tiamalgamation.c(1929) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1930) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1931) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1932) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1932) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1932) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1933) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1933) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1935) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1935) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1935) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1935) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1935) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1935) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1935) : warning C4244: '+=' : conversion from 'const double' to 'int', possible loss of data libindicators/tiamalgamation.c(1937) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1938) : error C2065: 'short_ema' : undeclared identifier libindicators/tiamalgamation.c(1938) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1939) : error C2065: 'long_ema' : undeclared identifier libindicators/tiamalgamation.c(1939) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1941) : error C2065: 'short_ema' : undeclared identifier libindicators/tiamalgamation.c(1941) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1941) : error C2065: 'short_ema' : undeclared identifier libindicators/tiamalgamation.c(1941) : error C2065: 'short_per' : undeclared identifier libindicators/tiamalgamation.c(1941) : error C2065: 'short_ema' : undeclared identifier libindicators/tiamalgamation.c(1942) : error C2065: 'long_ema' : undeclared identifier libindicators/tiamalgamation.c(1942) : error C2065: 'sum' : undeclared identifier libindicators/tiamalgamation.c(1942) : error C2065: 'long_ema' : undeclared identifier libindicators/tiamalgamation.c(1942) : error C2065: 'long_per' : undeclared identifier libindicators/tiamalgamation.c(1942) : error C2065: 'long_ema' : undeclared identifier libindicators/tiamalgamation.c(1944) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1945) : error C2065: 'output' : undeclared identifier libindicators/tiamalgamation.c(1945) : error C2100: illegal indirection libindicators/tiamalgamation.c(1945) : error C2065: 'short_ema' : undeclared identifier libindicators/tiamalgamation.c(1945) : error C2065: 'long_ema' : undeclared identifier libindicators/tiamalgamation.c(1945) : error C2106: '=' : left operand must be l-value libindicators/tiamalgamation.c(1962) : error C2143: syntax error : missing ';' before 'const' libindicators/tiamalgamation.c(1963) : error C2143: syntax error : missing ';' before 'const' libindicators/tiamalgamation.c(1964) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1965) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1966) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1967) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1968) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1968) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1968) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1970) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1970) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1970) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1971) : error C2065: 'atr' : undeclared identifier libindicators/tiamalgamation.c(1971) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data libindicators/tiamalgamation.c(1972) : error C2143: syntax error : missing ';' before 'type' libindicators/tiamalgamation.c(1973) : error C2065: 'dp' : undeclared identifier libindicators/tiamalgamation.c(1973) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1973) : error C2065: 'i' : undeclared identifier libindicators/tiamalgamation.c(1973) : warning C4244: '=' : conversion from 'const double' to 'int', possible loss of data libindicators/tiamalgamation.c(1973) : error C2065: 'dm' : undeclared identifier libindicators/tiamalgamation.c(1973) : fatal error C1003: error count exceeds 100; stopping compilation error: command 'C:\\Users\\appveyor\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
Had the same issue installing with Python 2.7, with all Build Tools installed, on Win 10
No problem with debian or Python 3.6 on Win 10 though!
It seems like an issue with a lack of C99 support in VC9
Not sure why this is breaking for 2.7 but works for 3.6. Example error when compiling: