Linking Error in OCCI
hi Guys...
please help me...
i m new in c++ connectivity with Oracle using OCCI...
following is my code which i wrote in Dev C++ using g++ compiler
#include <occi.h>
using namespace oracle::occi;
int main() {
Environment *env = Environment::createEnvironment();
Environment::terminateEnvironment(env);
return 0;
Errors comming
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Dev-Cpp\bin\occ1.cpp" -o "C:\Dev-Cpp\bin\occ1.exe" -I"C:\Dev-Cpp\lib\gcc\mingw32\3.4.2\include" -I"C:\Dev-Cpp\include\c++\3.4.2\backward" -I"C:\Dev-Cpp\include\c++\3.4.2\mingw32" -I"C:\Dev-Cpp\include\c++\3.4.2" -I"C:\Dev-Cpp\include" -I"E:\instantclient" -I"E:\oracle\product\10.2.0\db_1\OCI\include" -L"C:\Dev-Cpp\lib" -L"E:\instantclient"
C:\DOCUME~1\MANSI\LOCALS~1\Temp/cc4Gcaaa.o(.text+0x52):occ1.cpp: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
C:\DOCUME~1\MANSI\LOCALS~1\Temp/cc4Gcaaa.o(.text+0x60):occ1.cpp: undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
collect2: ld returned 1 exit status
Execution terminated
tell me where I am wrong???
hi Mark,
Thanks So much for replying...
Actually I am totally new in C++ connectivity with oracle 10g database..
could u please help me because tomorrow i have an interview on this...n i wnt to learn some basics of creating a connection
it would be great if u can give me some steps on how to create a c++ program ( what compliers , header files,library files ..on which location they should be) that can connect to oracle 10g database.
plz it very urgent
i have done searching on google...but didn't get good tutorial on this...
thanks
mansi
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 DHi ,
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 -
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
SunilHi,
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,
SrihariHello,
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 -
Instantclient OCCI on Tiger link error
Hello guys,
Has anyone been able to link the C++/OCCI application from sdk/demo in the instant client distribution on Tiger ?
The C/OCI application links just fine, whereas the OCCI one gives the following error:
/usr/bin/ld: Undefined symbols:
typeinfo for oracle::occi::SQLException
collect2: ld returned 1 exit status
This is with (GCC) 4.0.1 (Apple Computer, Inc. build 5247)
Any ideas? Thanks!This actually works with gcc_select 3.3
I guess there's slim chances of getting this to work with gcc4 right?
Any mac heads aware of problems using 3.3 can cause, especially if using different libraries as well? I know what happens on Linux... but I'm rather new to Macs. Thanks in advance! -
Error compiling OCCI example - undefined reference
Hello.
I am having trouble linking a simple Oracle OCCI example using SunStudio 12 , Update 1 on RHEL 5.2 . This is the error.
~/demo]$ cat new.C
#include<occi.h>
using namespace oracle::occi;
int main(){
Environment *envr;
envr=Environment::createEnvironment(Environment::DEFAULT);
~/demo]$ CC -L/apps/oracle/product/10.2.0/lib -I/apps/oracle/product/10.2.0/rdbms/public -locci -lclntsh new.C
new.o: In function `main':
new.C:(.text+0x64): undefined reference to `oracle::occi::Environment*oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode,void*,void*(*)(void*,unsigned long),void*(*)(void*,void*,unsigned long),void(*)(void*,void*))'
The same example compiles and links with a warning with g++ . executable is created.
~/demo]$ g++34 -L/apps/oracle/product/10.2.0/lib -I/apps/oracle/product/10.2.0/rdbms/public -locci -lclntsh new.C
/usr/bin/ld: warning: libstdc++.so.5, needed by /apps/oracle/product/10.2.0/lib/libocci.so, may conflict with libstdc++.so.6
Any ideas what may be wrong here ?
Edited by: machambi on Jun 24, 2010 1:56 PMWell, without being able to recreate it myself, I think I'm stumped. I figured it was a linking error based on the error message but the format of the error message isn't familiar to me. What platform is this being done on?
Other things I would do to try to track down the issue (I'm sure you've probably done most of these, but just to be thorough):
Verify that the ${ORACLE_HOME}/lib/libocci.a library exists and you have read access to it. It will often be a symbolic link to a versioned library such as ${ORACLE_HOME}/lib/libocci10.a. In our Oracle installation we have a ${ORACLE_HOME}/lib and an ${ORACLE_HOME}/lib32, and in our case the libocci.a file is actually installed in the lib32 directory. However, I doubt the library is missing otherwise you would get a library not found error instead, but I'm not sure what error you would get if you didn't have read permissions.
Try linking it directly instead of going through CC.
Use a command like:
~/demo]$ nm -C ${ORACLE_HOME}/lib/libocci.a |grep "::createEnvironment(oracle" to make sure the function can be found within the occi library and in the format the linker is looking for.
Look over the man pages on your linker looking for clarification on how it locates libraries, if it looks in additional locations or if there are any environment variables that would effect the paths you provided on the command line.
-Christian -
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.objHi,
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 -
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 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 errorHello-
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,
WalterAlex,
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> -
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. -
"Not an executable or is a link" errors when starting Messaging Server
"Not an executable or is a link" errors when starting Messaging Server
<P>
If Calendar Server 3.x has been installed to the same server root
as Messaging server, it is possible that the command 'NscpMail start'
to restart the server will return a string of errors:
# /etc/NscpMail start
19971207145610:Dispatch:Notification:Local Module
(Account-Handler) is not a n executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Account-Manager) is not a n executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(AutoReply-Handler) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Configuration-Manager) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Error-Handler) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Mailbox-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Program-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(SMTP-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(SMTP-Router) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(UNIX-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(Finger-Server) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(IMAP4-Server) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(POP3-Server) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(SMTP-Accept) is not an executable or is a link.
Module not loaded.
Startup Problem:
Module Error-Handler is required for proper operation.
Netscape Messaging Server Exiting!
The Calendar server 3.x installation may have changed the permissions
on [server-root]/bin directory from 755 to 750. Simply issue the
command (as root) 'chmod 755 [server-root]/bin' and then start
the server with the 'NscpMail start' command, and it should start
without a problem."Not an executable or is a link" errors when starting Messaging Server
<P>
If Calendar Server 3.x has been installed to the same server root
as Messaging server, it is possible that the command 'NscpMail start'
to restart the server will return a string of errors:
# /etc/NscpMail start
19971207145610:Dispatch:Notification:Local Module
(Account-Handler) is not a n executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Account-Manager) is not a n executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(AutoReply-Handler) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Configuration-Manager) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Error-Handler) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Mailbox-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(Program-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(SMTP-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(SMTP-Router) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Local Module
(UNIX-Deliver) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(Finger-Server) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(IMAP4-Server) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(POP3-Server) is not an executable or is a link.
Module not loaded.
19971207145610:Dispatch:Notification:Network Module
(SMTP-Accept) is not an executable or is a link.
Module not loaded.
Startup Problem:
Module Error-Handler is required for proper operation.
Netscape Messaging Server Exiting!
The Calendar server 3.x installation may have changed the permissions
on [server-root]/bin directory from 755 to 750. Simply issue the
command (as root) 'chmod 755 [server-root]/bin' and then start
the server with the 'NscpMail start' command, and it should start
without a problem. -
I have a 15" PB which gave an "invalid sibling link error" one month ago and I was not able to even repair it using DiskWarrior. I have Apple Care Protection plan, so I sent it for repairs and the repair guys replaced the motherboard as they suspected it was the reason. On return, I reformatted the HD and installed everything from stratch. Everything was working fine till last Saturday morning, when computer would not boot up. So I checked using Disk Utility from PB DVD, and the dreaded "invalid sibling error" came up again. Since I have a bootable backup of the HD, I formatted the HD and tried to load the system on the HD from the backup copy. But the writing of backup using CCC hung up and I had to quit it. After that I was not able to find the HD using Disk Utility from DVD.
I have sent it for repairs again, but can anyone help me understand the core problem here. Since last time they replaced the motherboard, I think they will replace the HD this time around. Is the logic board, motherboard or the HD that is the root cause of the problem?
Powerbook G4 Mac OS X (10.4.7) 100GB HDD, 1.5GB RAMI had never heard of "invalid sibling link error" until you post, and when I ran a search on it the best explanation I could find is that it is a directory-related problem. See the following (assuming it is correct): http://www.computing.net/mac/wwwboard/forum/2584.html The suggestion there, though, is that DIsk Warrior should be able to fix the problem, and you've already told us that you tried using Disk Warrior on it and it did not work.
Very puzzling. Please post back what happens when you get your PB back from being repaired.
Good luck.
-- JDee -
Linking errors when using ibsta
Hello,
I have been trying to write C code to automate a Keithley 2410 through GPIB. I am using Windows XP 32-bit, and VC++.
I believe I was successful in getting a handle to the gpib-32.dll. However, I am getting a linking error when I try to use ibsta: 1>helloworld.obj : error LNK2001: unresolved external symbol _ibsta
1>C:\Documents and Settings\Prober\My Documents\C Programs\helloworld\Debug\helloworld.exe : fatal error LNK1120: 1 unresolved externals
However, when I look through the ni488.h, I see that ibsta is a global variable. Therefore I am confused as to why I am getting a linking error
I am following this guide: http://na.tm.agilent.com/pna/help/latest/Programming/GPIB_Example_Programs/GPIB_using_Visual_C++.htm
My code is attached
Attachments:
code.c 3 KBCheck out the 4882query.c example located on your computer at National Instruments > NI-488.2 > Examples > Standard C > 4882query. The National Instruments folder might be in a sub-folder of Public or Public Documents. Look at the ReadMe.txt file first. It contains a C++ section. Then try compiling the example and see what happens.
Jeff Munn
Applications Engineer
National Instruments -
Re: Link error during fcompile
Hi Jeanne:
I have already gone trough the procedure you have described but the
result is same.
When I invoke link command on all the *.obj files with some libraries
from forte and
MSVC/Lib I get the same Error. The command I am invoking is
C:\> link *.obj *.lib
Assuming that I am in the dir where all .obj files are and I have copied
all required .lib files in this dir. Other thing that I have also tried
this with different link flags and/or with exact flags from Forte log
file.
Thanks for your respons.
Any othe suggestions please?
--Shahzad
Jeanne Hesler wrote:
Shahzad,
Have you tried manually invoking the link command itself from the
command
line? I was able to do this successfully when having problems with
the
Borland compiler under 16-bit windows. It is not a long-term
solution,
because you obviously want fcompile to handle the entire task, but it
might
help you determine if it is a problem with the fcompile or the linker
itself.
I executed the fcompile from a DOS window in the ...codegen\myapp
directory. When the error occurred, I found the log file that is
created
from the fcompile, and determined the last command that was executed.
I
can't tell you the exact specifics here, because I have not had
problems
with fcompile using the MSVC compiler. But I am assuming that Forte
is
consistent about writing the compiler output to a log file. I could
then
copy the command line from the log file to the command line in the dos
window and execute it manually.
You have to be careful copying the command line, because there are a
lot of
flags, and they ARE case-sensitive. If you get the same error when
invoking the command manually, then you can assume that the problem is
with
the compiler itself, or as it was in my case, with the compiler
setup. If
the command is successful when you execute it manually, then you can
pursue
it as a problem with the fcompile.
One other thought -- you might make sure that you have plenty of extra
disk
space. Compilers like to write temporary files during the compile
process.
On a very large compile, you might need a lot of working space for
these
temporary files. I believe the MSVC compiler writes these files to
the
directory indicated by the environment variable TMP (not TEMP).
Hope this helps,
At 11:22 AM 10/17/97 -0400, you wrote:
Hi,
I am getting this error during fcompile of a large (12MB) pgffile
link: fatal error LNK1141: failure during build of exportes file
error during compilation, aborting
This is under Windows NT and MSVC compiler. MSVC Documetation saysthat
this could be due
to insufficient memory. But we have 0.5Geg ram and I don't even seeall
memory being utilized during compile.
Any clues?
--Shahzad
--Jeanne
============================================================
Jeanne Hesler [email protected]
============================================================The way to handle this is to break down the fcompile. Here is the
process:
1. fcompile -nocompile -fm "(x:40000)"
this will produce the CPP and H files
2. fcompile -nogen -fm "(x:40000)"
this will link the files and produce the exe.
If there is an error then you will know exactly where its happening.
Hope this helps.
Kamran Amin
Technical Leader, Software Engineering
Oxford Health Plan
http://www.oxhp.com/
From: Chaudary M. Shahzad[SMTP:[email protected]]
Sent: Friday, October 17, 1997 7:05 PM
To: [email protected]
Subject: Re: Link error during fcompile
Bruce:
I have tried that I have even tried
fcompile -fm '(x:400000)'
It seems like its the Microsoft Compiler and/or Linker problem. There
have to be some flags for compiler or linker I can
set with fcomile so it allocate more memory for the MSVC linker.
Any more clues or help ????
--Shahzad
Bruce Lipson wrote:
Chaudary,
There are flags for setting the usage of memory by the fcompile
command.
fcompile -fm '(x:250000)'
where x:250000 sets the maximum amount of memory fcompile will use to
250k.
the default is 64k.
Get it a try.
Bruce Lipson
[email protected]
-----Original Message-----
From: Chaudary Shahzad [SMTP:[email protected]]
Sent: Friday, October 17, 1997 11:22 AM
To: [email protected]
Subject: Link error during fcompile
Hi,
I am getting this error during fcompile of a large (12MB) pgf
file
link: fatal error LNK1141: failure during build of exportes file
error during compilation, aborting
This is under Windows NT and MSVC compiler. MSVC Documetation says
that
this could be due
to insufficient memory. But we have 0.5Geg ram and I don't even see
all
memory being utilized during compile.
Any clues?
--Shahzad
Maybe you are looking for
-
How do i undo my IOS 6 update because there is no youtube and I hate the new software. Please i want to have my older version of software back on my ipad2. I have installed the youtube app. But i hate it so much i just want my old youtube back. How
-
Hi, My work unit consist of a main program (Z_MAIN) and an include program (Z_INCLUDE). It looks like this... in the main program: report z_main. select-options: s_budat for mkpf-budat, perform write_date. in the include program (Z_INCLUD
-
How do I upgrade from Photoshop CS6 to Photoshop CS6 Extended?
I'd like to use the 3D text. I have a Mac. I didn't realise there was more than one version of Photoshop when I purchased. Thanks.
-
How can I dump Pages document A into Pages document B without having to manually select every line of text and copying and then pasting?
-
I would like to pull a report out of the ZCM inventory that would show which ZCM servers the workstations are connected to as we have more than one server in our zone. How is this done? Our db is MS SQL 2005. Chris