Re: [Dev-C++] undefined reference to all ODBC API functions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-09-16 19:56:25
|
Hi Waseem, I come across this kind of problem all the time in my own applications. My solution to find the correct library to link is to use a text search application such as grep. Then I execute cd ~/dev-cpp/lib grep -i -r 'SQLAllocEnv' * (FINDSTR in DOS/Windows I believe). The results of this are pasted into the Project Options --> Parameters --> Linker window in the form: -lSQL_Library where SQL_Library is the correct library name, sans the extension. As example I am working on a GIMP plug-in. One of the required libraries is gimp-2.0.lib. It's entry in the Project Options --> Parameters --> Linker window is: -lgimp-2.0 Have a great weekend! Waseem Ahmad <was...@ya...> wrote: Dear Sir, I tried to comile a database program using ODBC API . During linking 'undefined reference to SQLAllocEnv' error occurs. This error occurs for each ODBC API functions. I am using sql.h, sqltypes.h and sqlext.h file with Dev-c++. Please suggest solution to this problem. W. Ahmad --------------------------------- Yahoo! India Matrimony: Find your partner now. Alfred P. Reaud |