×

Loading...
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务
Ad by
  • 推荐 OXIO 加拿大高速网络,最低月费仅$40. 使用推荐码 RCR37MB 可获得一个月的免费服务

那位用过unixodbc?一个应用连接时调用了odbc库,格式如 -lodbc,可是在相应的/usr/local/unixODBC/lib/下没有libodbc.a(整个系统中也没搜到),只有一个文件libodbc.la(内容见内),该目录下有相应的动态库.连接能成功,WHY?

# libodbc.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libodbc.so.1'

# Names of this library.
library_names='libodbc.so.1.0.0 libodbc.so.1 libodbc.so'

# The name of the static archive.
old_library=''

# Libraries that this one depends upon.
dependency_libs=' -ldl -lpthread'

# Version information for libodbc.
current=1
age=0
revision=0

# Is this an already installed library?
installed=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/local/unixODBC/lib'
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / 那位用过unixodbc?一个应用连接时调用了odbc库,格式如 -lodbc,可是在相应的/usr/local/unixODBC/lib/下没有libodbc.a(整个系统中也没搜到),只有一个文件libodbc.la(内容见内),该目录下有相应的动态库.连接能成功,WHY?
    # libodbc.la - a libtool library file
    # Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
    #
    # Please DO NOT delete this file!
    # It is necessary for linking the library.

    # The name that we can dlopen(3).
    dlname='libodbc.so.1'

    # Names of this library.
    library_names='libodbc.so.1.0.0 libodbc.so.1 libodbc.so'

    # The name of the static archive.
    old_library=''

    # Libraries that this one depends upon.
    dependency_libs=' -ldl -lpthread'

    # Version information for libodbc.
    current=1
    age=0
    revision=0

    # Is this an already installed library?
    installed=yes

    # Files to dlopen/dlpreopen
    dlopen=''
    dlpreopen=''

    # Directory that this library needs to be installed in:
    libdir='/usr/local/unixODBC/lib'
    • 该系统是Redhat9. 似乎安装unixodbc需要glib_devel的支持,因为在HP和Solaris下编译总提示少些头文件.那位知道安装unixodbc需要那些支持库?
      • sorry, glibc_devel
        • 高手呢?都休假去了吗?
          • download and build it: http://orcane.net/freeodbc++/
    • 不是有libodbc.so嘛?
      • 看来我以前理解有问题.动态库(如libodbc.so.1.0.0)也可以在连接时载入."在默认情况下,Linux将首先搜索指定库的共享版本,如果找不到,才会去搜索静态版本".谢谢!