Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A SMALL QUESTION !

Status
Not open for further replies.

rufillo

Programmer
Dec 18, 2002
4
MX

hi :
i have a problem , i have a machine with Aix and db2 and i want to make a program that insert in the bd of db2 but when i compile the program , this send me a message of error, and i don't know that i must do, the messages are :

Undefined :
# make adhoc
cc -O adhoc.c -o adhoc
ld: 0711-317 ERROR: Undefined symbol: .sqlastrt
ld: 0711-317 ERROR: Undefined symbol: .sqlaaloc
ld: 0711-317 ERROR: Undefined symbol: .sqlasetd
ld: 0711-317 ERROR: Undefined symbol: .sqlacall
ld: 0711-317 ERROR: Undefined symbol: .sqlastop
ld: 0711-317 ERROR: Undefined symbol: .SqlInfoPrint
ld: 0711-317 ERROR: Undefined symbol: .TransRollback
ld: 0711-317 ERROR: Undefined symbol: .init_da
ld: 0711-317 ERROR: Undefined symbol: .sqlastls
ld: 0711-317 ERROR: Undefined symbol: .sqlausda
ld: 0711-317 ERROR: Undefined symbol: .alloc_host_vars
ld: 0711-317 ERROR: Undefined symbol: .display_col_titles
ld: 0711-317 ERROR: Undefined symbol: .display_da
ld: 0711-317 ERROR: Undefined symbol: .free_da
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
make: 1254-004 The error code from the last command is 8.

i hope your answer .
 
Your DB2 library files are not being found by 'make'.
Make sure your LIBPATH environment variable includes DB2 library path, somewhere down this path /usr/lpp/db2_VERSION/....
 
If LIBPATH is defined it is used as the default library path information, otherwise, it is /usr/lib:/lib. If -L and -blibpath is not specified the default library path information is written in the loader section of the output file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top