By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,493 Members | 1,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,493 IT Pros & Developers. It's quick & easy.

Need odbc32.lib odbccp32.lib

P: n/a
Hi,
Can someone please tell me where I can find those two libraries for
Visual C++ 2005 Express Edition compiler?

Thanks in advance,
Ashish.

Apr 20 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Sky
<as***************@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hi,
Can someone please tell me where I can find those two libraries for
Visual C++ 2005 Express Edition compiler?

Thanks in advance,
Ashish.


Not the right news group, but you need the Platform SDK at:
http://www.microsoft.com/downloads/d...displaylang=en

You need to follow instructions for adding the SDK to VC++ Express paths for
headers and libraries:
http://msdn.microsoft.com/vstudio/ex...ualc/usingpsdk

- Steve

Apr 21 '06 #2

P: n/a

Sky wrote:
<as***************@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hi,
Can someone please tell me where I can find those two libraries for
Visual C++ 2005 Express Edition compiler?

Thanks in advance,
Ashish.


Not the right news group, but you need the Platform SDK at:
http://www.microsoft.com/downloads/d...displaylang=en

You need to follow instructions for adding the SDK to VC++ Express paths for
headers and libraries:
http://msdn.microsoft.com/vstudio/ex...ualc/usingpsdk

- Steve


Steve, sorry about posting to this list again. I originally did so
because ODBC stuff seemed pertinent to an Access newsgroup. I've
already installed the platform SDK for VC++ 2005 Express Edition; add
the paths etc. but I still can't locate either of those libraries on my
harddrive.

Ashish.

Apr 21 '06 #3

P: n/a
Sky
<as***************@gmail.com> wrote in message
news:11*********************@v46g2000cwv.googlegro ups.com...

Sky wrote:
<as***************@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
Hi,
Can someone please tell me where I can find those two libraries for
Visual C++ 2005 Express Edition compiler?

Thanks in advance,
Ashish.


Not the right news group, but you need the Platform SDK at:
http://www.microsoft.com/downloads/d...displaylang=en
You need to follow instructions for adding the SDK to VC++ Express paths for headers and libraries:
http://msdn.microsoft.com/vstudio/ex...ualc/usingpsdk

- Steve


Steve, sorry about posting to this list again. I originally did so
because ODBC stuff seemed pertinent to an Access newsgroup. I've
already installed the platform SDK for VC++ 2005 Express Edition; add
the paths etc. but I still can't locate either of those libraries on my
harddrive.

Ashish.


I just looked in the SDK install folder, under the Lib subfolder. The
odbc32.lib and odbccp32.lib files are definitely there. Are you sure you
installed the SDK properly?

For compiling, you need to #include the appropriate headers and you need to
add the SDK path for include files, as in the instructions

For linking, you need to add the additional library files in your Additional
Dependencies. For example, edit the corewin_express.vsprops file (found in
C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults or wherever
you installed) and change the string that reads:

AdditionalDependencies="kernel32.lib"

to something like

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib comctl32.Lib"

or whatever you need. It works for me, and I do explicitly use ODBC in my
C++ programs that read Jet data.

- Steve

Apr 21 '06 #4

P: n/a
I just looked in the SDK install folder, under the Lib subfolder. The
odbc32.lib and odbccp32.lib files are definitely there. Are you sure you
installed the SDK properly?

For compiling, you need to #include the appropriate headers and you need to
add the SDK path for include files, as in the instructions

For linking, you need to add the additional library files in your Additional
Dependencies. For example, edit the corewin_express.vsprops file (found in
C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults or wherever
you installed) and change the string that reads:

AdditionalDependencies="kernel32.lib"

to something like

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
odbc32.lib comctl32.Lib"

or whatever you need. It works for me, and I do explicitly use ODBC in my
C++ programs that read Jet data.

- Steve


This is really odd, I just reinstalled the PSDK to make sure I hadn't
selected the custom option and left out some components the first time.
I did a complete install this time and I still don't have the ODBC
libraries. Do you think it might be because I have free version of the
compiler? Maybe some libraries are installed only with the professional
version.

Ashish.

Apr 21 '06 #5

P: n/a
Sky
<as***************@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...

This is really odd, I just reinstalled the PSDK to make sure I hadn't
selected the custom option and left out some components the first time.
I did a complete install this time and I still don't have the ODBC
libraries. Do you think it might be because I have free version of the
compiler? Maybe some libraries are installed only with the professional
version.

Ashish.


I first installed C++ Express (free) and then the SDK (also free) to a
folder "\Sdk". I now have a file "\Sdk\Lib\odbc32.lib which I link to.

- Steve

Apr 22 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.