Menu

dev-cpp and SQL Server

2002-09-18
2012-09-26
  • Nobody/Anonymous

    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.

     
    • Nobody/Anonymous

      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.

       
    • Nobody/Anonymous

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.