I am trying to develop statically linked OCi/OCCI application and I am getting lots of undefined errors like following.
Can somebody tell me which .a libs to be included at link line.
Thanks.
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxxmlidc.o): In function lxXmlIdConv':
lxxmlidc.c:(.text+0x15d): undefined reference to
lxuCvtToCtx'
lxxmlidc.c:(.text+0x23f): undefined reference to lxu4TstClass'
lxxmlidc.c:(.text+0x36f): undefined reference to
lxu4TstClass'
lxxmlidc.c:(.text+0x386): undefined reference to lxu4TstClass'
lxxmlidc.c:(.text+0x39d): undefined reference to
lxu4TstClass'
lxxmlidc.c:(.text+0x3be): undefined reference to lxu4TstClass'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxxmlidc.o):lxxmlidc.c:(.text+0x7d4): more undefined references to
lxu4TstClass' follow
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function lxucaFindLastNonCombiningChar':
lxuca.c:(.text+0xc82): undefined reference to
lxu4GCombiningClass'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function lxucaFindTrimPosition':
lxuca.c:(.text+0xfd6): undefined reference to
lxuCvtToCtx'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function lxucaGetKey':
lxuca.c:(text.hot+0xb2c): undefined reference to
lxuComposition'
lxuca.c:(text.hot+0xe06): undefined reference to lxu4GCombiningClass'
lxuca.c:(text.hot+0xeaa): undefined reference to
lxu4GCombiningClass'
lxuca.c:(text.hot+0x112b): undefined reference to lxu4GCombiningClass'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function
lxucaConvertAndDecompose':
lxuca.c:(text.hot+0x181a): undefined reference to lxuDecomposition'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxuca.o): In function
lxucaGetImplicitWeightBase':
lxuca.c:(text.hot+0x1b16): undefined reference to lxu4GBlock'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxpisac.o): In function
lxpIsACollationElement':
lxpisac.c:(.text+0x2fc): undefined reference to lxuCvtToCtx'
/u01/home/oracle/product/12.1.0.2/lib/libnls12.a(lxpisac.o): In function
lxpNumOfUc4CollationElem':
lxpisac.c:(.text+0x753): undefined reference to lxuCvtToCtx'
lxpisac.c:(.text+0x91a): undefined reference to
lxuComposition'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmini.o): In function lrminiu':
lrmini.c:(.text+0x5b6): undefined reference to
lxuCvtToCtx'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmpu.o): In function lrmpu16to8':
lrmpu.c:(text.unlikely+0x57): undefined reference to
lxuStrLen'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lsf.o): In function lsfiniu':
lsf.c:(.text+0x551): undefined reference to
lxuCvtToCtx'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lsfu.o): In function lsfu16to8':
lsfu.c:(text.unlikely+0x65): undefined reference to
lxuStrLen'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmckv.o): In function lrmckv':
lrmckv.c:(.text+0x54f): undefined reference to
lxuCmpBinStr'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmpatk.o): In function lrmpatk':
lrmpatk.c:(text.unlikely+0x2f1): undefined reference to
lxuCmpBinStr'
/u01/home/oracle/product/12.1.0.2/lib/libcore12.a(lrmcvv.o): In function lrmcvv':
lrmcvv.c:(.text+0x219): undefined reference to
lxuCmpBinStr'
Thanks I have used nm command for all the symbols on all Oracle libraries and included them in link line. After trying some permutations and combinations it got linked