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

DB2 C header files

P: n/a
Stupid question, probably...

Is some version of the Development Client needed in order for the db2 header
files (sql.h, etc.) to show up in the sqllib/include library? Or is there
some place we can just copy these from? Our database is running on Linux,
but it doesn't look like the development stuff was installed. I'm trying to
do this with a minimum of effort...

The guy who installed DB2 (I won't call him a DBA, because he isn't, really)
suggested I just copy the ones from my Windows workstation, which has the
dev client on it, but Linux doesn't seem to like some of the Windows stuff.
Specifically "#define SQL_API_FN __stdcall".

db2level is:
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08020"

with level identifier "03010106".
Informational tokens are "DB2 v8.1.0.64", "s040812", "MI00091", and FixPak
"7".
Product is installed at "/opt/IBM/db2/V8.1".

Frank
---
Frank Swarbrick
Senior Developer/Analyst - Mainframe Applications
FirstBank Data Corporation - Lakewood, CO USA
Feb 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Frank Swarbrick wrote:
Stupid question, probably...

Is some version of the Development Client needed in order for the db2
header
files (sql.h, etc.) to show up in the sqllib/include library? Or is there
some place we can just copy these from? Our database is running on Linux,
but it doesn't look like the development stuff was installed. I'm trying
to do this with a minimum of effort...

The guy who installed DB2 (I won't call him a DBA, because he isn't,
really) suggested I just copy the ones from my Windows workstation, which
has the dev client on it, but Linux doesn't seem to like some of the
Windows stuff.
Specifically "#define SQL_API_FN __stdcall".
The safest way is to run "db2setup" again and to install the development
stuff. This should also be the easiest because you won't have to figure
out which files you will need.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Feb 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.