djhenderson / pyodbc

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

Extra include needed to compile on VS8 #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create project in VS8
2. compile

What is the expected output? What do you see instead?

Compiler gives message:
c:\python-2.7\modules\pyodbc-2.1.8\pyodbcmodule.cpp(900) : error C2065: 
'_CRTDBG_ALLOC_MEM_DF' : undeclared identifier

What version of the product are you using? On what operating system?
Version 2.1.8.

Solution: add following three lines to pyodbcmodule.cpp:
#ifdef _DEBUG
#include <crtdbg.h>
#endif

Please provide any additional information below.
Suggested solution solves the problem

Original issue reported on code.google.com by rbrt8...@gmail.com on 26 Nov 2010 at 4:15

GoogleCodeExporter commented 9 years ago
How are you building it?  It is not designed to be built manually using Visual 
Studio.  You download it and run "python setup.py build" which will set all of 
the settings to match how your version of Python was built.

Original comment by mkleehammer on 27 Nov 2010 at 2:09

GoogleCodeExporter commented 9 years ago
Closing due to inactivity

Original comment by mkleehammer on 29 Sep 2012 at 7:50