The following reference is useful when working with ODBC on 64-bit systems:
- INFO: ODBC 64-Bit API Changes in MDAC 2.7, Article ID: 298678
https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-64-bit-information?view=sql-server-ver15
- ODBC header files, specifically sql.h.
- README file delivered with ODBC Driver for Teradata. This file contains information about compilation and linking with ODBC Driver for Teradata on 64-bit systems. The file is located in the <InstallDir> on UNIX systems and available in the menu on Windows systems. On Apple macOS, the file is located at:
/Library/Application Support/teradata/client/<TTU version>/odbc/README.
When compiling 64-bit applications for ODBC Driver for Teradata on the Linux/UNIX system, it is important to use -DODBC64 to enable the 64-bit definitions in the Driver Manager include files.