The normal suggestion: Make sure that you are linking your application
with the required library. Header files are just an index of available
functions - just like the telephone catalog. They make the compiler happy.
Next step is to make the linker happy.
/Per W
On Fri, 16 Sep 2005, Waseem Ahmad 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.
|