Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2002
    Posts
    3

    Unanswered: DBlib compilation error in winNT platform

    Hi,

    I am having sybase ASE 12.5 evaluation copy and i am trying to compile a dblib sample provided by sybase and i am getting the following error

    E:\ase\OCS-12_5\sample\dblib>cl example1.c
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
    Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

    example1.c
    Microsoft (R) Incremental Linker Version 6.00.8168
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

    /out:example1.exe
    example1.obj
    example1.obj : error LNK2001: unresolved external symbol _dbexit@0
    example1.obj : error LNK2001: unresolved external symbol _dbcurrow@4
    example1.obj : error LNK2001: unresolved external symbol _dbnextrow@4
    example1.obj : error LNK2001: unresolved external symbol _dbcurcmd@4
    example1.obj : error LNK2001: unresolved external symbol _dbbind@20
    example1.obj : error LNK2001: unresolved external symbol _dbresults@4
    example1.obj : error LNK2001: unresolved external symbol _dbsqlexec@4
    example1.obj : error LNK2001: unresolved external symbol _dbcmd@8
    example1.obj : error LNK2001: unresolved external symbol _dbopen@8
    example1.obj : error LNK2001: unresolved external symbol _dbsetlname@12
    example1.obj : error LNK2001: unresolved external symbol _dblogin@0
    example1.obj : error LNK2001: unresolved external symbol _dbmsghandle@4
    example1.obj : error LNK2001: unresolved external symbol _dberrhandle@4
    example1.obj : error LNK2001: unresolved external symbol _dbinit@0
    example1.obj : error LNK2001: unresolved external symbol _dbdead@4
    example1.exe : fatal error LNK1120: 15 unresolved externals

    can anyone help me in solving the problem. I will be more thankfull if someone can send me the sample compilation & linking commands in windows NT platform.

    Regards
    Kamalakar Vangara

  2. #2
    Join Date
    Feb 2003
    Posts
    1

    Cool hope thim might help

    While programming in VC++ using dblibrary for c I too got some Unresolved externals error.
    I dont know much about your IDE,but here's what I did in VC++

    1. found out the name of the req lib file
    2. Project > settings> links tab , added the .lib file name to list of Object/Library modules

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •