Occi demo link error on solaris10/gcc2.95

Hi,every one,I have an error when I compile the occi demo as following command line:
-bash-3.00$g++ -g -o demo -L../../ -I../include -locci -lclntsh -lthread occidml.cpp
ERROR:
Undefined first referenced
symbol in file
__1cG__CrunKpure_error6F_v_ ../..//libocci.so
__1cDstdbC__RTTI__1nDstdMlength_error__ ../..//libocci.so
__1cDstdMout_of_range2T6M_v_ ../..//libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ ../..//libocci.so
__1cG__CrunIex_alloc6FI_pv_ ../..//libocci.so
__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ ../..//libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ ../..//libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcIrkn0C__v_ ../..//libocci.so
__1cH__rwstdRexcept_msg_string2t6MIE_v_ ../..//libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ ../..//libocci.so
oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)/var/tmp//ccqQh503.o
__1cH__rwstdbC__rwse_StringIndexOutOfRange_ ../..//libocci.so
__1cDstdZ__RTTI__1nDstdJbad_alloc__ ../..//libocci.so
I compiled it use gcc3.4.2 compiler, the same error occured.
why? how can I resolve the problem?
thanks

Are you using Instant Client? If so, in 10.1, Instant Client does not have an SDK package, and you cannot compile with it. That feature is only available with 10.2. I hope that helps!

Similar Messages

  • Linker errors when linking OCCI 10.1.0  statically on RH AS 3.0 platform

    Hello All,
    I was trying to build an OCCI program on a Red Hat AS 3.0 Update 4 Platform, statically linking to OCCI libraries of Oracle 10.1.0 version. The g++ compiler version is 3.2.3.
    The Makefile and the errors that got generated is mentioned below. However, I could able to build the program when linking through shared library version of OCCI. My requirement is to build the program statically.
    I had been stuck up with this for almost a week and tried checking the previous postings in the forums/newsgroups, but not of much help. I added the following libraries :
    -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10\
    -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10
    to the Makefile, based on somebody's posting in OCI/OCCI forum. If I didn't provide
    -lpthread I get linker errors in pthread_xxx functions.
    Any help/pointers on this would be really appreciated.
    Makefile (static link)
    ======
    CXX=/usr/bin/g++
    ORA_HOME=/u01/app/oracle/product/10.1.0
    ifndef CXXFLAGS
    # Define C++ compiler flags to locate third-party header files as well as
    # any other options you may want.
    CXXFLAGS=-I${ORA_HOME}/rdbms/demo \
    -I${ORA_HOME}/rdbms/public \
    -I${ORA_HOME}/plsql/public \
    -I${ORA_HOME}/network/public
    endif
    # Include any header files in the current directoryj
    CXXFLAGS:=$(CXXFLAGS) -I . -g -static
    ifndef LDFLAGS
    # Define link paths for Oracle libraries.
    LDFLAGS=-L${ORA_HOME}/lib/ -L${ORA_HOME}/rdbms/lib/
    endif
    LIBS=-locci10 -lclntst10 -lnsl -ldl -lm \
    -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10\
    -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lpthread
    #LIBS=${ORA_HOME}/lib/libocci10.a ${ORA_HOME}/lib/libclntst10.a -lpthread -ldl
    OCCIPROG=SCDBUtilTest
    OCCIOBJ=SCDBUtil.o SCDBUtilTest.o
    debug: ${OCCIPROG}
    ${OCCIPROG}: ${OCCIOBJ}
    ${CXX} ${CXXFLAGS} -o $@ ${OCCIOBJ} ${LDFLAGS} ${LIBS}
    clean:
    -rm -f $(OCCIPROG) $(OCCIOBJ)
    When ran make, below is the output generated.
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -c -o SCDBUtil.o SCDBUtil.cpp
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -c -o SCDBUtilTest.o SCDBUtilTest.cpp
    /usr/bin/g++ -I/u01/app/oracle/product/10.1.0/rdbms/demo -I/u01/app/oracle/product/10.1.0/rdbms/public -I/u01/app/oracle/product/10.1.0/plsql/public -I/u01/app/oracle/product/10.1.0/network/public -I . -g -static -o SCDBUtilTest SCDBUtil.o SCDBUtilTest.o -L/u01/app/oracle/product/10.1.0/lib/ -L/u01/app/oracle/product/10.1.0/rdbms/lib/ -locci10 -lclntst10 -lnsl -ldl -lm -lnbeq10 -lnhost10 -lnus10 -lnldap10 -lldapclnt10 -lnsslb10 -lntcp10 -lntcps10 -lnsslb10 -lntcp10 -lntns10 -lpthread
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sqmul.o)(.text+0xab): In function `sqmul_dlopen':
    : Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0x1089): In function `sntpcall':
    : Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0x10a1): In function `sntpcall':
    : Using 'endgrent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sntp.o)(.text+0xfa1): In function `sntpcall':
    : Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(si.o)(.text+0x14f): In function `sigunmu':
    : Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sniq.o)(.text+0x224): In function `snigun':
    : Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1427): In function `snlpcgthstbyad':
    : Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(slputcp.o)(.text+0x245): In function `slputcpsockaddr':
    : Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sgslun.o)(.text+0x2ef0): In function `sgslunGetHostName':
    : Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0xe90): In function `snlpcgthstent':
    : Using 'gethostent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1945): In function `snlpcgtsrvbynm':
    : Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1b8b): In function `snlpcgtsrvbypt':
    : Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(snlpc.o)(.text+0x1702): In function `snlpcgtsrvent':
    : Using 'getservent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiStatementImpl.o)(.text+0x6ffb): In function `oracle::occi::StatementImpl::getObject(unsigned int)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0xf99): In function `oracle::occi::ResultSetImpl::getBFloat(unsigned int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x10d9): In function `oracle::occi::ResultSetImpl::getBDouble(unsigned int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x1ca8): In function `oracle::occi::ResultSetImpl::getObject(unsigned int)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x48b6): In function `oracle::occi::ResultSetImpl::defineConvertBFloat(oracle::occi::ResultSetImpl::Define*, float*, unsigned int*, int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiResultSetImpl.o)(.text+0x49e2): In function `oracle::occi::ResultSetImpl::defineConvertBDouble(oracle::occi::ResultSetImpl::Define*, double*, unsigned int*, int)':
    : undefined reference to `lfpinit'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x1aa): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x256): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x302): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<unsigned short, oracle::occi::utext_char_traits, std::allocator<unsigned short> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x3be): In function `oracle::occi::Timestamp::Timestamp(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, std::basic_string<unsigned short, oracle::occi::utext_char_traits, std::allocator<unsigned short> > const&)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0x48a): In function `oracle::occi::Timestamp::do_TimestampConstruct(oracle::occi::Environment const*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, void*)':
    : undefined reference to `OCIPGetTZI'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiTimestamp.o)(.text+0xb42): more undefined references to `OCIPGetTZI' follow
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiSQLExceptionImpl.o)(.text+0x91): In function `oracle::occi::SQLExceptionImpl::getNLSMessage(oracle::occi::Environment*) const':
    : undefined reference to `OCIPGetErrorMessageNLS'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiSQLExceptionImpl.o)(.text+0x15b): In function `oracle::occi::SQLExceptionImpl::getNLSUStringMessage(oracle::occi::Environment*) const':
    : undefined reference to `OCIPGetErrorMessageNLS'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x56): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::Connection const*, OCIAnyData*, bool)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x156): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::Connection const*, OCIAnyData*, bool)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x3ae): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::AnyDataCtx const*)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x4e6): In function `oracle::occi::AnyDataImpl::AnyDataImpl(oracle::occi::AnyDataCtx const*)':
    : undefined reference to `OCIPAnyDataSetUCIOptMode'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x780): In function `oracle::occi::AnyDataImpl::setNull()':
    : undefined reference to `OCIPAnyDataSetNull'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x1cc5): In function `oracle::occi::AnyDataImpl::setObject(oracle::occi::PObject const*)':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libocci10.a(occiAnyDataImpl.o)(.text+0x2d6f): In function `oracle::occi::AnyDataImpl::getAsObject() const':
    : undefined reference to `OCIPAnyDataSetFlag'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x39): In function `lstclo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x52): In function `lstclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstclo.o)(.text+0x6f): In function `lstclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x46): In function `lstmclo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x5f): In function `lstmclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmclo.o)(.text+0x7c): In function `lstmclo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lxhcnv.o)(.text+0x366): In function `lxhcnv':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lxpname.o)(.text+0xc5): In function `lxpname':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(sl.o)(.text+0x405): In function `sltln':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kge.o)(.text+0x2b19): In function `kgespf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kge.o)(.text+0x2d12): In function `kgespf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kgh.o)(.text+0x10d48): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpuini.o)(.text+0x1d70): In function `kpufhndl0':
    : undefined reference to `wtcsrfre'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpuini.o)(.text+0x7e00): In function `kpuinit0':
    : undefined reference to `wtcsrin'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb24.o)(.text+0x45): In function `lcvb24':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb24.o)(.text+0x9a): In function `lcvb24':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb2w.o)(.text+0x45): In function `lcvb2w':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lcvb2w.o)(.text+0x9a): In function `lcvb2w':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpu.o)(.text+0x1c5): In function `lpuparse':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpu.o)(.text+0xf62): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstlo.o)(.text+0x44): In function `lstlo':
    : undefined reference to `__ctype_tolower'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmup.o)(.text+0x43): In function `lstmup':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstup.o)(.text+0x28): In function `lstup':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstup.o)(.text+0x44): In function `lstup':
    : undefined reference to `__ctype_toupper'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x54f5): In function `LsxvParseDecimal':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x6da8): In function `LsxValidateBinary':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0x7710): In function `LsxValidateLong':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb274): In function `LsxvIsLanguage':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb316): In function `LsxvIsLanguage':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lsxv.o)(.text+0xb3ac): more undefined references to `__ctype_b' follow
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x271): In function `kpuccCacheErr':
    : undefined reference to `wtcLerr'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x2a6): In function `kpuccMainErr':
    : undefined reference to `wtcMerr'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x2e1): In function `kpuccGoRemote':
    : undefined reference to `wtclkm'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(kpucc.o)(.text+0x326): In function `kpuccGetStats':
    : undefined reference to `wtcstu'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lpxbuf.o)(.text+0x2a4f): In function `LpxbufSingleProcess':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(lstmlo.o)(.text+0x43): In function `lstmlo':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nldt.o)(.text+0x9a1): In function `nldtstr2lv':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x42f): In function `nlfifpf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x462): In function `nlfifpf':
    : undefined reference to `__ctype_b'
    /u01/app/oracle/product/10.1.0/lib//libclntst10.a(nlfi.o)(.text+0x4d4): more undefined references to `__ctype_b' follow
    collect2: ld returned 1 exit status
    make: *** [SCDBUtilTest] Error 1
    Thanks & Regards,
    Karthik D

    Hi ,
    Oh! Anyway, thanks for the information. However, the glibc version I use is glibc-2.3.2-95.30.
    There is a bit of story behind the reason we tried to use static linking. Actually, the application around which we use to develop solutions supports only Oracle 9i. We were developing some components using the C++ SDK provided by application vendor and that components need some information from DB for processing. So, we needed to write a DB class to do that. Since, we found Oracle supports C++ DB interface(OCCI), we thought to use that.
    We had to use RH AS 3.0 platform and the gcc compiler 3.2.x+ for compiling our component code. But Oracle 9i OCCI code doesn't get compiled with gcc/g++ 3.2.x+ compilers. So, we planned to use Oracle 10g OCCI libraries for building the DB class and link it to the custom component we had developed.
    In the run-time environment, we had to install both Oracle 9i clients and Oracle 10g clients since the app requires Oracle 9i and the custom component requires Oracle 10g. We did some kind of tweaking (by providing symbolic links to Oracle 10g OCCI libraries from Oracle 9i client directory) so that both the app and the component gets started.
    I know this is not a good idea. But we didn't want to spend much time on this at that time since we were doing a proof-of-concept. Later, we thought what could be done. We thought ,first we can try lthe custom component linked to static library version of OCCI. That's the reason we tried of static linking.
    The other option is to use OCI interface. But this is a bit of work since we need to write lot of wrapper methods to handle intricacies with OCI and OCI code is cumbersome compared to OCCI.
    Hope now you could have got the problem, I am talking about. Any other better ways?
    Thanks
    Karthik

  • OCCI Linker Errors

    Hi All,
    I'm new to Occi, I've tried running a sample program and I'm getting this Linker Error on VC 2008, I've copied oraocci11.lib to my project directory and I'm still getting this linker error, Can someone please help me out.
    My Environment is
    VC++ 2008
    Oracle 11i
    On Windows XP 32 Bit OS
    1>Compiling...
    1>stdafx.cpp
    1>Compiling...
    1>OracleConnectSample.cpp
    1>AssemblyInfo.cpp
    1>Generating Code...
    1>Compiling resources...
    1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
    1>Copyright (C) Microsoft Corporation. All rights reserved.
    1>Linking...
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002BD) "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall oracle::occi::SQLException::getMessage(void)const " (?getMessage@SQLException@occi@oracle@@$$FUBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function __catch$?main@@$$HYAHHPAPAD@Z$0
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002BF) "public: virtual __thiscall oracle::occi::SQLException::~SQLException(void)" (??1SQLException@occi@oracle@@$$FUAE@XZ) referenced in function __catch$?main@@$$HYAHHPAPAD@Z$0
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002C0) "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@$$FSAXPAV123@@Z) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002C4) "public: unsigned int __thiscall oracle::occi::Blob::length(void)const " (?length@Blob@occi@oracle@@$$FQBEIXZ) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002C5) "public: __thiscall oracle::occi::Blob::~Blob(void)" (??1Blob@occi@oracle@@$$FQAE@XZ) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002C7) "public: __thiscall oracle::occi::Blob::Blob(class oracle::occi::Blob const &)" (??0Blob@occi@oracle@@$$FQAE@ABV012@@Z) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2028: unresolved token (0A0002CC) "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall oracle::occi::SQLException::~SQLException(void)" (??1SQLException@occi@oracle@@$$FUAE@XZ) referenced in function __catch$?main@@$$HYAHHPAPAD@Z$0
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall oracle::occi::SQLException::getMessage(void)const " (?getMessage@SQLException@occi@oracle@@$$FUBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function __catch$?main@@$$HYAHHPAPAD@Z$0
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@$$FSAXPAV123@@Z) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: unsigned int __thiscall oracle::occi::Blob::length(void)const " (?length@Blob@occi@oracle@@$$FQBEIXZ) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: __thiscall oracle::occi::Blob::~Blob(void)" (??1Blob@occi@oracle@@$$FQAE@XZ) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: __thiscall oracle::occi::Blob::Blob(class oracle::occi::Blob const &)" (??0Blob@occi@oracle@@$$FQAE@ABV012@@Z) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>OracleConnectSample.obj : error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "int __cdecl main(int,char * *)" (?main@@$$HYAHHPAPAD@Z)
    1>E:\Samples\OracleConnectSample\Debug\OracleConnectSample.exe : fatal error LNK1120: 14 unresolved externals
    Thanks
    Sunil

    Hi,
    It looks like you may not have added the occi library to the linker input in the project properties.
    Something like:
    Select Project –> <Name> Properties... from the menu (substitute your project name)
    Expand Configuration Properties node, expand Linker node, select Input item, enter "oraocci11d.lib" for a debug build or "oraocci11.lib" for a release build.
    Regards,
    Mark

  • Linking error while trying to connect to 10 g oracle db through OCCI

    Hello experts,
    Iam getting a linking error while trying to connect to 10 g through OCCI.I've tried both available Instant client versions,But no luck.now, I am using instant client 11.2.0.2 with visual studio 2005 and oracle 10 g on 32 bit XP. I get "*The procedure entry point OCILobSetContentType could not be located in the dynamic link library OCI.dll*" linking error
    How can i fix this error
    Thanks in advance..
    Regards,
    Srihari

    Hello,
    Please ensure that you are using correct PATH and ORACLE_HOME settings - for example if IC 11202 is installed in
    c:\oracle\11202\instantclient_112
    execute on commandline
    ORACLE_HOME=c:\oracle\11202\instantclient_112
    PATH=%ORACLE_HOME%;%ORACLE_HOME%\bin;%PATH%
    before starting VS2005 from commandline - or generate a commandscript
    Inside VS2005 please ensure that you are picking up the libraries from
    %ORACLE_HOM%\oci\lib\msvc\v8\*
    furtheron, copy the
    %ORACLE_HOM%\oci\lib\msvc\v8\*.dll
    to %ORACLE_HOME% - otherwise by default the v9 ar picked up (copied during installation)
    When this has been done, build the code and test - should work
    regards,
    Frank
    Edited by: fscherie on 11.01.2012 12:41

  • Linking Error Compiling OCI Demos with Visual C++

    First let me say that I am new to using Visual C++. But my problem is that I am getting a Linking Error when compiling cdemo81.c. The error I get is as follows:
    Linking ...
    cdemo81.obj: error LNK2001: unresolved external symbol _OCITransCommit
    cdemo81.obj: error LNK2001: ...
    Debug/cdemo81.exe: fatal error LNK 1120: 14 unresolved externals
    Error executing link.exe
    I think that the problem is that I am not linking in the OCI executable files correctly. So if someone could help me out, it would be greatly appreciated.

    Do you link oci.lib? Thats the only lib file you need actially.
    If you are using MS VC++, you can add lib path from Tools>Options>Directories.Choose "Library files" from "Show directories for" dropdown list, adn then add you ora.lib path (usually $ORAHOME\oci\lib\).
    You also need to add oci.lib in the project settings in the Object/library modules filed of Link tab. Do not forget to add oci.lib for both Debug end Release settings.
    Cheers,
    Tolkun.

  • 'Link errors' while compiling Palm OS app using CodeWarrior

    I tried to compile the the sample application given in Oracle 9i lite MDK (Mobile Development Kit) using Codewarrior demo version 8 and it gave me a lot of link errors. Further more the okapi used were being termed as undefined, probably because the librabry files were not found, even though the lib files were included in the project.
    Please help...I've been stuck at this point for quite some time now.
    Regards
    Ripu

    Hi Rao,
    As Timo said, it is difficult to say the exact solution to your problem but you can try below suggestions as well.
    1. Schema check: the entity objects which you are referring might have got schema changes (lets say it is in XX_SCHMEA1 today and now they might be in XX_SCHEMA2, it happened for me in my earlier project where DBA team has moved the tables to a different schema totally). In that case, you need to edit your code to update the correct schema.
    2. Alias check: Open any of the entity for which you got error and check in the editor if it got any wrong alias name infront of it "XX_SCHEMA1.XX_TABLE_1", you can remove this alias and try again ( this happens when you modify the Configuration in AM -> Connection Type, for e.g. you converted it to "JDBC URL" from "JDBC DataSource" and in that case, you can manually delete those alias names infront of all entities because all your VOs are referring to entities without that alias (unless you refresh your vos)
    3. For entities, check the Tables as well as Synonym in case if these tables are synonym in the schema you used for your entities.
    4. Username/Password check: To do a bulk change, right click on Model project->click on "ADF Business Components"->check the connection details and see if anything got changed (like username/password). You can edit and test the connection to see if that is working or not.
    Regards,
    Ravi Nuka.

  • Ttclasses60.lib link error

    Hi
    I'm trying to link ttClasses60.lib on Visual C++ 6.0 but i've got link error LNK2001 such as:
    error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class TTStatus c
    onst &)" (__imp_??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVTTStatus@@@Z)
    Could you guys find out what's the problem?

    This error is usually encountered when you are using a later version of MSFT compiler than VC 6.0. Perhaps you are using VC .NET or VC .NET 2003? One way to tell is to run
    cl.exe /?
    Since ttclasses is distributed in source form, you can easily rebuild them using your compiler. Just cd into the $install_dir\ttclasses directory and do "nmake /f Makefile.vsdotnet clean all", then do the same in the demo\ttclasses directory.

  • How compile OCCI Demo of Oracle 9i with gcc on Redhat Linux 9?

    How compile OCCI Demo of Oracle 9i with gcc on Redhat Linux 9?
    When I use gcc-3.22 compile,error:undefined reference to 'typeinfo for oracle:occi:SQLException'.
    Reputedly gcc-2.95 or gcc-2.96 is the official supported version , did you try it?
    Can you help me compile it successfully?
    Thank you!
    Alex Clark

    For details
    compile cmd:make -f demo_rdbms.mk occipool
    compile result:
    make -f /opt/oracle/product/9.2.0/rdbms/demo/demo_rdbms.mk buildocci
    EXE=occipoo
    l OBJS=occipool.o
    make[1]: Entering directory `/opt/oracle/product/9.2.0/rdbms/demo'
    /usr/bin/g++ -L/opt/oracle/product/9.2.0/lib/
    -L/opt/oracle/product/9.2.0/rdbms/
    lib/ -o occipool occipool.o -locci -lclntsh `cat
    /opt/oracle/product/9.2.0/lib
    /sysliblist` -ldl -lm
    occipool.o(.gcc_except_table+0xe8): undefined reference to `typeinfo for
    oracle:
    :occi::SQLException'
    occipool.o(.gnu.linkonce.t._ZN8occipoolC1Ev+0x18): In function
    `occipool::occipo
    ol[in-charge]()':
    : undefined reference to
    `oracle::occi::Environment::createEnvironment(oracle::o
    cci::Environment::Mode, void*, void* (*)(void*, unsigned), void* (*)(void*,
    void
    *, unsigned), void (*)(void*, void*))'
    occipool.o(.gnu.linkonce.t._ZN8occipoolD1Ev+0xf): In function
    `occipool::~occipo
    ol [in-charge]()':
    : undefined reference to
    `oracle::occi::Environment::terminateEnvironment(oracle
    ::occi::Environment*)'
    occipool.o(.gnu.linkonce.t._ZN8occipool6selectEv+0x355): In function
    `occipool::
    select()':
    : undefined reference to
    `oracle::occi::SQLException::SQLException[in-charge](or
    acle::occi::SQLException const&)'
    occipool.o(.gnu.linkonce.t._ZN8occipool6selectEv+0x395): In function
    `occipool::
    select()':
    : undefined reference to `oracle::occi::SQLException::getErrorCode() const'
    occipool.o(.gnu.linkonce.t._ZN8occipool6selectEv+0x3db): In function
    `occipool::
    select()':
    : undefined reference to `oracle::occi::SQLException::getMessage() const'
    occipool.o(.gnu.linkonce.t._ZN8occipool6selectEv+0x44f): In function
    `occipool::
    select()':
    : undefined reference to `oracle::occi::SQLException::~SQLException
    [in-charge]()'
    occipool.o(.gnu.linkonce.t._ZN8occipool6selectEv+0x466): In function
    `occipool::
    select()':
    : undefined reference to `oracle::occi::SQLException::~SQLException
    [in-charge]()'
    collect2: ld returned 1 exit status
    make[1]: *** [buildocci] Error 1
    make[1]: Leaving directory `/opt/oracle/product/9.2.0/rdbms/demo'
    make: *** [occipool] Error 2

  • OCCI demo compiled BUT....

    I compiled the occidml demo successfully but now when I try to run the occidml I get this:
    exec(): 0509-036 Cannot load program occidml because of the following errors:
    0509-150 Dependent module /u01/app/oracle/product/9.2.0/lib32/libocci.a(shr.o) could not be loaded.
    0509-124 The program is a discontinued 64-bit object file.
    Anybody have a clue ?????

    Hi,
    I have a different issue in linking the occidml demo. Could you please let me know how are you linking it. the demo*mk file does not work, so I split the commands in two steps
    Platform Solaris - 8
    Oracle 9i
    Using Sun Workshop compiler
    CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-12 2002/12/16
    Step 1) Compile - Works fine
    /opt/SUNWspro/bin/CC -xarch=v9 -c occidml.cpp -I/opt/oracle/u01/app/oracle/product/9.2.0/rdbms/public
    Step 2)LINK = Error see below
    ld -o occidml -L/opt/oracle/u01/app/oracle/product/9.2.0/lib -L/opt/oracle/u01/app/oracle/product/9.2.0/rdbs/lib -L/usr/lib/64/ `cat /opt/oracle/u01/app/oracle/product/9.2.0/lib/sysliblist` -R/opt/oracle/u01/app/oracle/product9.2.0/lib -R/usr/lib/64/ -laio -lposix4 -lkstat -lm -lthread -locci9 -lclntsh -lclient9 -lcommon9 -lctxc9 -ldm9 -lgenric9 -lordim9 -lplc9 -lsql9 -lz -lm occidml.o
    __1cDstd2l6Frn0ANbasic_ostream4Ccn0ALchar_traits4Cc____pkc_2_ occidml.o
    __1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6MpFr1_2_2_ occidml.o
    __1cGoracleEocciLEnvironmentUterminateEnvironment6Fp2_v_ occidml.o
    __1cDstdIios_baseR__sync_with_stdio_ occidml.o
    __1cG__CrunGex_get6F_pv_ occidml.o
    __1cDstdbG__RTTI__1nDstdIios_baseHfailure__ occidml.o
    __1cGoracleEocciMSQdDLExceptionKgetMessage6kM_nDstdMbasic_string4Ccn0DLchar_traits4Cc__n0DJallocator4Cc_____ occidml.o
    __1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___Dput6Mc_r1_ occidml.o
    __1cG__CrunHex_skip6F_b_ occidml.o
    __1cH__rwstdUInterlockedDecrement6Fpl_l_ occidml.o
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___J__nullref_ occidml.o
    __1cH__rwstdQrwse_failbit_set_ occidml.o
    __1c2k6Fpv_v_ occidml.o
    __1cH__rwstdRexcept_msg_string2t6MIE_v_ occidml.o
    __1cG__CrunIex_clean6F_v_ occidml.o
    __1cG__CrunKex_rethrow6F_v_ occidml.o
    __1cG__CrunMex_rethrow_q6F_v_ occidml.o
    __1cDstdEcerr_ occidml.o
    __1cDstdEcout_ occidml.o
    __iob occidml.o (symbol belongs to implicit dependency /usr/lib/64//libc.so.1)
    __1cGoracleEocciMSQdDLExceptionMgetErrorCode6kM_i_ occidml.o
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ occidml.o
    __1cH__rwstdPrwse_badbit_set_ occidml.o
    __1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___Fflush6M_r1_ occidml.o
    __1cH__rwstdUInterlockedIncrement6Fpl_l_ occidml.o
    __1cDstdIios_baseHfailure2T6M_v_ occidml.o
    __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ occidml.o
    __1cDstdIios_baseHfailure2t6Mrkn0AMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc_____v_ occidml.o
    __1cH__rwstdPrwse_eofbit_set_ occidml.o
    __1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___I__getRep6MLL_pnH__rwstdM__string_ref4Ccn0B_n0C____ occiml.o
    __1cGoracleEoccibM__RTTI__1nGoracleEocciMSQdDdDLException__ occidml.o
    __1cGoracleEocciMSQdDLException2T6M_v_ occidml.o
    __1cDstdNbasic_ostream4Ccn0ALchar_traits4Cc___2l6Mi_r1_ occidml.o
    fflush occidml.o (symbol belongs to implicit dependency /usr/lib/64//libc.so.1)
    __1cGoracleEocciMSQdDLException2t6Mrk2_v_ occidml.o
    memcpy occidml.o (symbol belongs to implicit dependency /usr/lib/64//libc.so.1)
    __1cGoracleEocciLEnvironmentRcreateEnvironment6Fn0CEMode_pvpF4L_4pF44L_4pF44_v_p2_ occidml.o
    __1c2n6FL_pv_ occidml.o
    __1cG__CrunIex_alloc6FL_pv_ occidml.o
    ld: fatal: Symbol referencing errors. No output written to occidml

  • To ask OCCI demo's  question

    Hi,
    I am trying to compile OCCI demo file ($ORACLE_HOME/rdbms/demo/occiproc.cpp) and run it in Aix, but ORA-01008 error.
    Thank you for any replies...
    ===================================================
    printing information:
    new occiproc successfull.
    callproc - invoking a PL/SQL procedure having IN, OUT and IN/OUT parameters
    Executing the block :"BEGIN demo_proc(:1, :2, :3); END; "
    1008: ORA-01008: not all variables bound
    ===================================================
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    class occiproc
    private:
         Environment *env;
         Connection *con;
    public :
         occiproc (string user, string passwd, string db) throw (SQLException)
              env = Environment::createEnvironment (Environment::DEFAULT);
              con = env->createConnection (user, passwd, db);
         ~occiproc () throw (SQLException)
              env->terminateConnection (con);
              Environment::terminateEnvironment (env);
         void callproc ()
              cout << "callproc - invoking a PL/SQL procedure having IN, OUT and IN/OUT ";
              cout << "parameters" << endl;
              Statement *stmt = con->createStatement("BEGIN demo_proc(:1, :2, :3); END; ");
              cout << "Executing the block :" << "\"" << stmt->getSQL() << "\"" << endl;
              stmt->setInt (1, 10);
              stmt->setString (2, "IN");
              stmt->registerOutParam (2, OCCISTRING, 30, "");
              stmt->registerOutParam (3, OCCISTRING, 30, "");
              try {
                   int updateCount = stmt->executeUpdate ();
                   cout << "Update Count:" << updateCount << endl;
              } catch (SQLException &sqlExcp)
                   cerr <<sqlExcp.getErrorCode() << ": " << sqlExcp.getMessage() << endl;
                   exit(0);
              string c1 = stmt->getString (2);
              string c2 = stmt->getString (3);
              cout << "Printing the INOUT & OUT parameters:" << endl;
              cout << "Col2:" << c1 << " Col3:" << c2 << endl;
              con->terminateStatement (stmt);
              cout << "occiproc - done" << endl;
    int main (void)
         string user = "HR";
         string passwd = "HR";
         string db = "tmp";
         occiproc *demo = new occiproc (user, passwd, db);
         cout << "new occiproc successfull." << endl;
         demo->callproc();
         delete demo;

    thanks.
    I still can't resolve the problem according to your advice and I find an interesting thing.
    when I change the binding of parameters code and only use a OUT paramter in demo_proc store procedure,
    it still tell me 'ORA-01008: not all variables bound'; but when i change all parameters to IN paramters,
    it works well.
    In addition, my oracle version is 9.2.0.5.0 and AIX OS version is 5.2 .
    Regards,
    tenkoo

  • Linker Error during compiling ODBC WinCE C++_Sample Project

    I am devloping a ODBC application for PocketPC2003 using OLite 10g Release 10.3.0.2. before that i am understanding the sample application provided with Olite.
    I followed all the instructions provided in ReadMe.txt file available before using VC++ sample. After making all the settings and compiling i am getting following linker errors as mentioned below.
    Any solution for this problem at the earliest will be appreciated, i have tried link all the libraries provided with WinCE armv4.
    Linker Error Messages:
    Error     1     error LNK2019: unresolved external symbol SQLExecDirect referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     2     error LNK2019: unresolved external symbol SQLFreeStmt referenced in function "public: virtual __cdecl CSQLResult::~CSQLResult(void)" (??1CSQLResult@@UAA@XZ)     dbaccess.obj     
    Error     3     error LNK2019: unresolved external symbol SQLGetData referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     4     error LNK2019: unresolved external symbol SQLFetch referenced in function "public: class CRowObj const * __cdecl CSQLResult::Fetch(int)" (?Fetch@CSQLResult@@QAAPBVCRowObj@@H@Z)     dbaccess.obj     
    Error     5     error LNK2019: unresolved external symbol SQLFreeEnv referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     6     error LNK2019: unresolved external symbol SQLFreeConnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     7     error LNK2019: unresolved external symbol SQLDisconnect referenced in function "public: void __cdecl COLiteDB::Disconnect(void)" (?Disconnect@COLiteDB@@QAAXXZ)     dbaccess.obj     
    Error     8     error LNK2019: unresolved external symbol SQLConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     9     error LNK2019: unresolved external symbol SQLAllocConnect referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     10     error LNK2019: unresolved external symbol SQLAllocEnv referenced in function "public: int __cdecl COLiteDB::Connect(void)" (?Connect@COLiteDB@@QAAHXZ)     dbaccess.obj     
    Error     11     error LNK2019: unresolved external symbol SQLError referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     12     error LNK2019: unresolved external symbol SQLDescribeCol referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     13     error LNK2019: unresolved external symbol SQLNumResultCols referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj     
    Error     14     error LNK2019: unresolved external symbol SQLAllocStmt referenced in function "public: class CSQLResult * __cdecl COLiteDB::Execute(wchar_t const *)" (?Execute@COLiteDB@@QAAPAVCSQLResult@@PB_W@Z)     dbaccess.obj

    Hi,
    The OLITE forum (Database Mobile Server (inc. legacy Database Lite) would be a better place to post your issue. This forum deals with the ODBC driver that connects to a "normal" Oracle database.
    Hope it helps,
    Greg
    Edited by: gdarling on Nov 12, 2008 8:31 AM

  • The broken link error

    Hi,
    Please help me with this broken link error in Office Excel 2010. Thank you.
    The problem is: a broken link cannot be removed from the file. The link was used in data validation, which refers to a list of values. After the path was corrected, it still shows there’s a broken link. Here are the details:
    I have 4 files named “000TVA_Test – 3”, “000TVA_Test – 4”, “000TVA_Test – 5”, and “000TVA_Test – 6”. The posterior files were developed based on the previous files.
    In Test-3, sheet “Template “, cell “L4”, “O4”, “R4”… were built as dropdown list using data validation. The list source is in the “Library” worksheet. There’s no problem so far.
    Test-4 was firstly copied from Test-3. In this file I renamed the worksheet from “Library” to “Setting” and the link was broken from here. I can also fix the broken link in this file. (While I didn’t realize there was a broken link.)
    In Test-5 I fixed the path, but every time when opening the file, the broken link still shows.
    In Test-6 I’ve removed the data validations. The broken link is still there.
    I tried to find solutions online. I tried common methods, cannot find anything in the files is still using links. I also tried the “findlink.xla” add-in, but it only worked for Test-4, and couldn’t find the link in other files.
    Please help. Thank you!
    I uploaded files here: https://onedrive.live.com/redir?resid=1A97736E0ABBAA41!113&authkey=!AF5wAd9rwUPnYyE&ithint=folder%2cxlsm
    Thanks again!

    Hi,
    Based on my tested the files downloaded, I found that Test-5 & Test-6 included the "A defined name that refers to an external workbook", Test-4 had not. (Please click Formula Tab>Name Manage, you'll see them.)
    However, the Break Links command cannot break the following types of links:   
    A defined name that refers to an external workbook
    A ListBox control with an input range that refers to an external workbook.
    A DropDown control with an input range that refers to an external workbook.
    http://support2.microsoft.com/kb/291984/en-us (It also applies to Excel 2010)
    Thus, we'd better try the workaround: re-build the Test-5 & Test 6.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I am getting an linker error LNK2001 : unresolved symbol _main while compiling Microsoft c code

    I am writng a simple application in C language for communicating with GPIB. when I compile the c file I am getting a linker error
    LIBC.lib(ctr0.obj): LNK2001 error: unresolved sysmbol _main
    I compile the application in the dos window using the command
    cl gpibApplication.c gpib-32.obj.
    Could anyone tell me how to remove this error

    Hello-
    It sounds like the main function is missing from the gpibApplication.c file. Be sure that the following function is somewhere in the code:
    int main (int argc, char *argv[])
    Also, note that this function is case sensitive, so be sure main is not capitalized.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Link errors on HP Itanium and Oracle 9.0.1.0.1 Developers Release

    We have pulled down the Oracle Developers release for HP-UX 11.22 and were not able to compile the Oracle code
    because of a link error. We are getting the following errors in the make.log file:
    (Bundled) cc: error 1913: `16M' does not exist or cannot be read
    (Bundled) cc: error 1913: `L' does not exist or cannot be read
    (Bundled) cc: error 1913: `1M' does not exist or cannot be read
    (Bundled) cc: error 1913: `1M' does not exist or cannot be read
    *** Error exit code 1
    Stop.
    Has anyone run into this issue and how was it resolved?
    Thanks,
    Walter

    Alex,
    does a
    select xmlelement("SQLX", 'Hello ,World!') from dual; work?
    SQL> select xmlelement("SQLX", 'Hello World!') from dual;
    XMLELEMENT("SQLX",'HELLOWORLD!')
    <SQLX>Hello World!</SQLX>
    It works for me in 9.2
    SQL> select xmlelement("orderid", order_num) from orders;
    XMLELEMENT("ORDERID",ORDER_NUM)
    <orderid>1</orderid>
    <orderid>2</orderid>
    <orderid>3</orderid>
    <orderid>1</orderid>
    <orderid>2</orderid>
    <orderid>3</orderid>
    6 rows selected.
    SQL>

  • My external hard drive won't mount and shows a 'sibling link error'. I've seached the forums but need a very dumbed down set of tips for the computer illiterate- help?

    The forums have suggestions on this topic but I don't understand the lingo used.

    Remember card catalogs in libraries?   The computer has its own card catalog that tells it where all the files are.  That's known as the directory.
    Sibling link error indicates something is wrong with one of the cards, making the computer lost.  Now the computer will put forth a bunch of gobbledy gook to fix this error, but you can do it. 
    Since the issue is with the external hard disk, you must select it with Disk Utility's First Aid selected.   There you will repair the disk.   If it can't repair the disk, you will need to use a more powerful tool.  The question is, is your data backed up elsewhere, or is it not?  If it is not, the same symptoms of a bad directory can also implicate a dying hard drive.  You'll want a data recovery tool if you aren't backed up.  If you are backed up, and there is nothing that can't be replaced on that external hard drive, get Alsoft Disk Warrior.  This should fix most bad sibling link errors repair disk can't.  When it can't, you can give up on the external hard disk.
    P.S. Permissions has NOTHING to do with the directory.  Do not worry about issues with permissions or attempting to repair it at this stage.

Maybe you are looking for

  • Satellite L305-S5896

    Hi all, I am having a problem with the toshiba service station. It has never worked from day 1. I have to go to the support web site just to get updates. I check the site for updates then go back and check the version nuber that is installed. Most of

  • ICloud icon disappeared in OS 10.8 System Prefs

    The iCloud icon that appears in the Internet and Wireless line of System Preferences disappeared when I installed Mountain Lion. I have activated iCloud.

  • What Do  'Red' Entries Mean?

    If you go into 'Phone' then into 'Recents' some of the entries on my iPhone3G are shown in a Red colour as opposed to the Black of the rest. For example one or two are listed as being from my brother Stephen, and some are shown or listed as 'Blocked'

  • How do I stop all snapping?

    As far as I can tell, I have ALL snapping options turned off... snap to point, snap to grid, snap to guide, smart guides... all of these are un-checked and/or turned off. But when I try to select and move points it still insists on snapping to someth

  • Bluetooth technology: Palm (syncing issue) - Keyboard - Mouse

    I have a palm TX (Garnet 5.0) which I had set up to sync via bluetooth through the hotsync application which accompanied the pda. It worked fine. Then I got a wireless Apple bluetooth keyboard and mighty mouse. After the set up of these two devices I