I'm new to dev-cpp and the microsoft world. Does anyone know how to compile and link a dev-cpp program to use a SQL Server 2000 database ? What libraries do you link in ? I'm using Windows 2000 and keep failing with the following error:
undefined reference to 'SQLAllocHandle@12'
Hence, I think I'm missing something. Currently, I am linking in -lodbc32 and nothing else.
Any help you can give me is much appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know about linking, but you can use sql by command line - writing and reading some short files doesn't take much time compared to database query.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm new to dev-cpp and the microsoft world. Does anyone know how to compile and link a dev-cpp program to use a SQL Server 2000 database ? What libraries do you link in ? I'm using Windows 2000 and keep failing with the following error:
undefined reference to 'SQLAllocHandle@12'
Hence, I think I'm missing something. Currently, I am linking in -lodbc32 and nothing else.
Any help you can give me is much appreciated.
I don't know about linking, but you can use sql by command line - writing and reading some short files doesn't take much time compared to database query.
As far as I know MS SqlServer uses ODBC only, so you should link with odbc. Try -lodbc32 as your project's linker option.
rpeter