Results 1 to 3 of 3

Thread: DB2 and VC++6

  1. #1
    Join Date
    Sep 2003
    Location
    Nevada
    Posts
    14

    Post Unanswered: DB2 and VC++6

    Hi,

    I am new to embedded programming with DB2 . I am interested in doing so and working with VC++6 compiler.

    I would be so thankful if i can be provided with some pointers for sample programs in the area of embedded c++ programming for DB2 and possibly information on how to successfully execute the sample programs.

    Thanks,
    Raj

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    Re: DB2 and VC++6

    In your installation directory, (Program Files\sqllib in V7 and Program Files\IBM\sqllib in V8), you should find a directroy samples\c ..

    If you don't find them, try to install the app dev client ...

    Cheers
    sathyaram

    Originally posted by raj_sudhan
    Hi,

    I am new to embedded programming with DB2 . I am interested in doing so and working with VC++6 compiler.

    I would be so thankful if i can be provided with some pointers for sample programs in the area of embedded c++ programming for DB2 and possibly information on how to successfully execute the sample programs.

    Thanks,
    Raj
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    Join Date
    Sep 2003
    Location
    Nevada
    Posts
    14
    Thank you satyaram for the information.
    while attempting to work with the sample programs, i have precompiled the sample static.sqx using the command

    PREP static.sqx
    which created a .cxx file

    in the next step i tried to open the file in MS VC++6 compiler to build the executable. The compiler generated several errors while linking as below. I had even registered the vc++6 add-ins .

    It would be very helpful if someone could let me the reason for this and how to succefully make it work with vc++6 compiler...
    The output from the compiler whie trying to build
    ---------------------------------------------------
    Linking...
    static.obj : error LNK2001: unresolved external symbol _TransRollback
    static.obj : error LNK2001: unresolved external symbol _SqlInfoPrint
    static.obj : error LNK2001: unresolved external symbol _sqlastop@4
    static.obj : error LNK2001: unresolved external symbol _sqlacall@20
    static.obj : error LNK2001: unresolved external symbol _sqlasetda@24
    static.obj : error LNK2001: unresolved external symbol _sqlaaloc@16
    static.obj : error LNK2001: unresolved external symbol _sqlastrt@12
    Debug/static.exe : fatal error LNK1120: 7 unresolved externals
    Error executing link.exe.

    static.exe - 8 error(s), 0 warning(s)


    Thank you,
    Raj

Posting Permissions

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