| Issue 164: | Defect | |
| 1 person starred this issue and may be notified of changes. | Back to list |
version 2.1.8 When I tried to install from source code i get error while compiling (python setup.py build), in file src/pyodbcmodule.cpp:919 [root@v pyodbc-v2.1.8]# pyodbc-v2.1.8/src/pyodbcmodule.cpp: In function ‘void initpyodbc()’: [root@v pyodbc-v2.1.8]# pyodbc-v2.1.8/src/pyodbcmodule.cpp:919: error: invalid conversion from ‘const char*’ to ‘char*’ [root@v pyodbc-v2.1.8]# pyodbc-v2.1.8/src/pyodbcmodule.cpp:919: error: initializing argument 3 of ‘int PyModule_AddStringConstant(PyObject*, char*, char*)’ I have changed line from const char* szVersion = TOSTRING(PYODBC_VERSION); to char* szVersion = TOSTRING(PYODBC_VERSION); and then it compiled successfully.
Mar 21, 2011
#1
lukedell...@gmail.com
Sep 13, 2011
(No comment was entered for this change.)
Status:
Complete
|