If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > c++builder and odbc32

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-17-04, 07:07
cakewalk cakewalk is offline
Registered User
 
Join Date: May 2004
Posts: 1
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
Reply With Quote
  #2 (permalink)  
Old 11-07-05, 14:15
raddog58 raddog58 is offline
Registered User
 
Join Date: Nov 2005
Posts: 3
did you ever get this resolved?

did you ever get this resolved? i'm having the same problem... :/
Reply With Quote
  #3 (permalink)  
Old 11-23-05, 10:04
esko esko is offline
Registered User
 
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 !
Reply With Quote
  #4 (permalink)  
Old 11-25-05, 08:28
esko esko is offline
Registered User
 
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 !
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On