|
From: Michal M. <mol...@se...> - 2014-08-13 04:52:13
|
Hello Markus,
compiles OK here, don't forget to have
-lodbc32
in the Project\Project Options\Parameters tab\Linker textbox
Have a nice day,
Michal
Dne 12.8.2014 14:24, Klemm, Markus napsal(a):
>
> 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
>
>
>
>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
Zdraví,
Michal Molhanec
|