viennacl / pyviennacl-dev

Developer repository for PyViennaCL. Visit http://viennacl.sourceforge.net/ for latest releases.
MIT License
32 stars 6 forks source link

VS2013 error compiling master on Windows #33

Closed opticode closed 9 years ago

opticode commented 9 years ago

Does anyone have build experience on Windows using Visual Studio? I get the following compiler error on Windows, compiling latest master with VS2013, and for Python 2.7:

src\_viennacl\platform_support.cpp(12) : error C2899:
  typename cannot be used outside a template declaration

And here is my batch file:

call "\Apps\Microsoft Visual Studio 12.0\VC\bin\amd64\vcvars64.bat"
set MSSdk=1
set DISTUTILS_USE_SDK=1 
\python27\python.exe setup.py build
karlrupp commented 9 years ago

Ah, there are spurious extra 'typename' keywords in the code, which other compilers silently accept. Please remove 'typename' in line 12 auf src/_viennacl/platform_support.cpp as well as in line 57. If you get the same error for other source code lines, repeat the procedure there. (Once you have a working build it would be great if you could send us a pull request!)

opticode commented 9 years ago

Thanks Karl - that did the trick! I will fork, fix, and submit a pull request.

opticode commented 9 years ago

Fixed via #34.