djhenderson / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

Defect #164

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by schmoo...@gmail.com on 16 Mar 2011 at 12:06

GoogleCodeExporter commented 9 years ago
This looks like the same problem that was reported in comments to Issue 105:
http://code.google.com/p/pyodbc/issues/detail?id=105#c6

It looks like it is fixed already in git, and should be in the next pyodbc 
release.

Original comment by lukedell...@gmail.com on 21 Mar 2011 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by mkleehammer on 13 Sep 2011 at 11:18