Results 1 to 4 of 4
  1. #1
    Join Date
    May 2004
    Posts
    1

    Unanswered: c++builder and odbc32

    Hello,
    I've tried to code some odbc program, using SQLAllocEnv and so on.
    I put the #include <sql.h>, and alos included the \include\MFC in the PATH.

    Il still have : "Unresolved external '_SQLAllocEnv' referenced from...., and so for each SQL function.
    My question is: How do We declare odbc32 in C++Builder to have a happy link?
    Regards

  2. #2
    Join Date
    Nov 2005
    Posts
    3

    did you ever get this resolved?

    did you ever get this resolved? i'm having the same problem... :/

  3. #3
    Join Date
    Nov 2005
    Posts
    2

    I have same problem with linking

    Hi,

    I have same problem. Let's try to find resolution.

    Good luck !

  4. #4
    Join Date
    Nov 2005
    Posts
    2

    I found solution !

    Quote Originally Posted by raddog58
    did you ever get this resolved? i'm having the same problem... :/
    We have to use makefile which takes care of compiling and linking. If we compile with ctrl+f7 we can't influence enough for that process. Following is a link where is information about that; http://apurvaslair.50g.com/cpp/compilers/borland.html

    Just download makefile from the web page and add odbc32.lib to the LIBFILES location like that;

    LIBFILES = odbc32.lib

    I did't add anything else and it works !

Posting Permissions

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