sql.h header file missing though unixODBC is installed

后端 未结 1 538
攒了一身酷
攒了一身酷 2020-12-05 18:41

I am on an up-to-date Ubuntu 12.04 system. I have unixodbc (v2.2.14 from ubuntu repos), MySQL and its relevant drivers installed. Also connected to a valid DSN. Verified by

相关标签:
1条回答
  • 2020-12-05 19:03

    You need to install the unixodbc-dev package to get the development header files.

    sudo apt-get install unixodbc-dev
    

    The -dev packages contain the require header files required to compile and build programs using these headers to make calls to the library. The library files themselves would be part of the regular package i.e. unixodbc in your case.

    If you want to know which package provides a certain file, you could use apt-file:

    sudo apt-file update
    sudo apt-file find sql.h
    
    0 讨论(0)
提交回复
热议问题