|
From: Klemm, M. <Mar...@ci...> - 2014-08-12 12:43:50
|
Hi,
I'm using Dev C++ 5.7.1. on a windows 7 Prof SP1 x64 and have linking errors when I'm trying to use even the simplest ODBC function. (Example bottom end)
C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib\libodbc32.a is existing and ODBC is working with the Pelles C implementation on my system too.
For example with
"
#define WIN32_LEAN_AND_MEAN
#define WIN32_DEFAULT_LIBS
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
int main(int argc, char** argv) {
static SQLHENV global_env_handle;
SQLAllocHandle(SQL_HANDLE_ENV,SQL_NULL_HANDLE,&global_env_handle);
return 0;
}
"
I've got the error 10 N:\demo\main.cpp undefined reference to `SQLAllocHandle'.
May this is related to http://bytes.com/topic/c/answers/160335-sqlext-h-odbc-link-time-error-dev-c-ide-mingw-compiler ?! Too bad all links there are dead.
Mit freundlichen Grüßen
Markus Klemm
|