[unixODBC-dev] SQLAllocEnv

Martin J. Evans martin.evans at easysoft.com
Tue Nov 23 17:44:47 GMT 2004

#include <sql.h>
#include <sqlext.h>

cc -I/path_to_unixODBC_headers -L/path_to_unixODBC_libs -lodbc program.c -o

Martin J. Evans
Easysoft Ltd, UK

On 23-Nov-2004 Alf C Stockton wrote:
> I am getting "undefined reference to 'SQLAllocEnv'" when I attempt to build a
> odbc program that I created via cut and paste from isql.c
> As a matter of interest this program compiles & links & successfully accesses
> MS 
> SQL database quite successfully on Win XP but won't build on Linux.
> I must be missing a #include ?????.h but cannot work out which .h to use.
> ---
> Regards,
> Alf Stockton  www.stockton.co.za
> Jenkinson's Law:
>       It won't work.
> _______________________________________________
> unixODBC-dev mailing list
> unixODBC-dev at easysoft.com
> http://mail.easysoft.com/mailman/listinfo/unixodbc-dev

More information about the unixODBC-dev mailing list