Errpr /lib64/libm.so.6: undefined reference to `__get_cpu_features@GLIBC_PR
Hi,
I am trying to install (FMW) IDM on OraLinux 6.0, but I am getting following error in middle of installation 92%complete.
Popup
Error in invoking target 'all' of makefile
'$oracle_home/idm/lib/ins_asha.mk'. See
$oracle_inventory/log/install{datetime}.log for details.My installation error log file show following message.
/app/oraInventory/logs/install{datetime}.log
Exception Name: MakefileException
Exception String: Error in invoking target 'all' of makefile '/app/oracle/fmw/idm/lib/ins_asha.mk'. See '/app/oraInventory/logs/install2011-09-10_11-21-01AM.log' for details.
Exception Severity: 1
]]and my make file log shows following error.
/app/oracle/fmw/idm/install/make.log
gcc -o /app/oracle/fmw/idm/bin/hasoipmn -L/app/oracle/fmw/idm/lib/ -L/app/oracle/fmw/idm/lib/ -L/app/oracle/fmw/idm/lib/stubs/ /app/oracle/fmw/idm/lib/s0hasoipmn.o /app/oracle/fmw/idm/lib/libclntsh.so /app/oracle/fmw/idm/lib/libhasocket.so -L/usr/lib -lirc -lpthread -lrt -lnsl
/lib64/libm.so.6: undefined reference to `__get_cpu_features@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make: *** [/app/oracle/fmw/idm/bin/hasoipmn] Error 1Does any body have idea, how to resolve this error.
I have the same problem when installing idm
Edit the env_asha.mk make file and add -lm the following lines:
ifeq ($(PLATFORM), linux)
HASOCKET_IP_MONITOR_LINKLINE+= $(LLIBIRC) -lpthread -lrt -lnsl -lm
endif
ifeq ($(PLATFORM), x86_64)
HASOCKET_IP_MONITOR_LINKLINE+= -L$(COMPDIR)/lib -lirc -lpthread -lrt -lnsl -lm
endif
Most of the times you try to install Oracle on an os that is too advanced for Oracle, you need to link either explicit to the m or nnz11 libs.
And I did post this solution before, but Oracle did censor it.
Yes Oracle can be installed on Fedora16, which came out yester day!!!
I did it!!!
Similar Messages
-
Again with the Environment::createEnvironment undefined reference
Gentlemen,
I've read through your posts on how to fix this item. However, none of your suggestions have worked.
So using the simple make of the rdbms demo program I ran this:
sudo make -f demo_rdbms.mk buildocci EXE=exename OBJS=occidml.o
and got this:
/usr/bin/g++ -c -I/u01/app/oracle/product/9.2.0.5/rdbms/demo -I/u01/app/oracle/product/9.2.0.5/rdbms/public -I/u01/app/oracle/product/9.2.0.5/plsql/public -I/u01/app/oracle/product/9.2.0.5/network/public occidml.cpp
/usr/bin/g++ -L/u01/app/oracle/product/9.2.0.5/lib/ -L/u01/app/oracle/product/9.2.0.5/rdbms/lib/ -o exename occidml.o -locci -lclntsh `cat /u01/app/oracle/product/9.2.0.5/lib/sysliblist` -ldl -lm
occidml.o(.gcc_except_table+0x100): undefined reference to `typeinfo for oracle::occi::SQLException'
occidml.o(.gcc_except_table+0x150): undefined reference to `typeinfo for oracle::occi::SQLException'
occidml.o(.gcc_except_table+0x1a8): undefined reference to `typeinfo for oracle::occi::SQLException'
occidml.o(.gcc_except_table+0x200): undefined reference to `typeinfo for oracle::occi::SQLException'
occidml.o(.gcc_except_table+0x25c): undefined reference to `typeinfo for oracle::occi::SQLException'
occidml.o(.gnu.linkonce.t._ZN7occidmlC1ESsSsSs+0x20): In function `occidml::occidml(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
occidml.o(.gnu.linkonce.t._ZN7occidmlD1Ev+0x2e): In function `occidml::~occidml()':
: undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
occidml.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x1cf): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
occidml.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x20f): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
occidml.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x252): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
occidml.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x2ae): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x2c2): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x18f): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
occidml.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x1cf): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
occidml.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x212): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
occidml.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x26e): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x282): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x1cf): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
occidml.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x20f): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
occidml.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x252): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
occidml.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x2ae): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x2c2): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x1cf): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
occidml.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x20f): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
occidml.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x252): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
occidml.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x2ae): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x2c2): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x234): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
occidml.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x274): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
occidml.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x2b7): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
occidml.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x313): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
occidml.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x327): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `cerr'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__pure_virtual'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `exception type_info function'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__cp_push_exception'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `endl(ostream &)'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__uncatch_exception'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__out_of_range(char const *)'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__rtti_user'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__ctype_toupper'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__rtti_si'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__check_eh_spec'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__throw'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `ostream::operator<<(char const *)'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `terminate(void)'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__start_cp_handler'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__cp_pop_exception'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `exception type_info node'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__builtin_vec_new'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__eh_rtime_match'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__length_error(char const *)'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__builtin_vec_delete'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `exception virtual table'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__rtti_class'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__builtin_delete'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__builtin_new'
/u01/app/oracle/product/9.2.0.5/lib//libocci.so: undefined reference to `__eh_alloc'
collect2: ld returned 1 exit status
make: *** [buildocci] Error 1
so thinking I've got library problems I ran this:
nm libocci.so:
nm: libocci.so: no symbols,
forgoing any particular program, I get this on 3 different programs here is a much simpler output from a personal copy of occidml.cpp, I ran this:
/usr/bin/g++ -I$ORACLE_HOME/rdbms/demo -I$ORACLE_HOME/rdbms/public -L/home/gsmith/lib -t -o testcppora main.cpp -locci -lclntst9
and got this:
/tmp/ccVtuhIM.o(.gcc_except_table+0x104): undefined reference to `typeinfo for oracle::occi::SQLException'
/tmp/ccVtuhIM.o(.gcc_except_table+0x15c): undefined reference to `typeinfo for oracle::occi::SQLException'
/tmp/ccVtuhIM.o(.gcc_except_table+0x1b8): undefined reference to `typeinfo for oracle::occi::SQLException'
/tmp/ccVtuhIM.o(.gcc_except_table+0x214): undefined reference to `typeinfo for oracle::occi::SQLException'
/tmp/ccVtuhIM.o(.gcc_except_table+0x278): undefined reference to `typeinfo for oracle::occi::SQLException'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidmlC1ESsSsSs+0x20): In function `occidml::occidml(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidmlD1Ev+0x2e): In function `occidml::~occidml()':
: undefined reference to `oracle::occi::Environment::terminateEnvironment(oracle::occi::Environment*)'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x10): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x1d8): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x218): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x25b): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x2b7): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x2cb): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x342): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml10insertBindEiSs+0x35f): In function `occidml::insertBind(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x10): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x198): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x1d8): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x21b): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x277): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x28b): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x302): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9insertRowEv+0x31f): In function `occidml::insertRow()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x10): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x1d8): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x218): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x25b): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x2b7): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x2cb): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x342): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9updateRowEiSs+0x35f): In function `occidml::updateRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x10): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x1d8): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x218): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x25b): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x2b7): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x2cb): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x342): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml9deleteRowEiSs+0x35f): In function `occidml::deleteRow(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x10): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x23d): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::SQLException(oracle::occi::SQLException const&)'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x27d): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::getErrorCode() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x2c0): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::getMessage() const'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x31c): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x330): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x3c5): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/tmp/ccVtuhIM.o(.gnu.linkonce.t._ZN7occidml14displayAllRowsEv+0x3e2): In function `occidml::displayAllRows()':
: undefined reference to `oracle::occi::SQLException::~SQLException()'
/usr/bin/ld: link errors found, deleting executable `testcppora'
/usr/bin/ld: mode elf_i386
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crti.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/crtbegin.o
/tmp/ccVtuhIM.o
-lstdc++ (/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libstdc++.so)
-lm (/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libm.so)
-lgcc_s (/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libgcc_s.so)
/lib/libc.so.6
(/usr/lib/libc_nonshared.a)elf-init.oS
-lgcc_s (/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/libgcc_s.so)
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/crtend.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crtn.o
collect2: ld returned 1 exit status
I've dug through the ld and gcc/g++ parameters and found nothing or create more linking problems. Someone suggested that the install of 9.2.0.5 Oracle C++ did not complete correctly...so I've asked our DBAs to see if they can relink that portion.
If anyone has any other thoughts it would be greatly appreciated.
Jerry.looks like you are using the wrong compiler. I think you should use gcc2.96 with OCCI 9.2.
-
Hi everyone,
I know that Oracle does not support OpenSuSE, but all previous database versions worked.
With Oracle 12c, the installation fails. I get the error below.
Probably someone has a helpful idea?
Yours, user8632123.
INFO: make -f /home/oracle/base/rdbms/12.101/precomp/lib/ins_precomp.mk relink EXENAME=proc
INFO: make[1]: Entering directory `/home/oracle/base/rdbms/12.101/precomp/lib'
INFO: Linking /home/oracle/base/rdbms/12.101/precomp/lib/proc
INFO: /usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /home/oracle/base/rdbms/12.101/lib//libnls12.a(lxhlang.o): undefined reference to symbol '__tls_get_addr@@GLIBC_2.3'
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: note: '__tls_get_addr@@GLIBC_2.3' is defined in DSO /lib64/ld-linux-x86-64.so.2 so try adding it to the linker command line
/lib64/ld-linux-x86-64.so.2: could not read symbols: Invalid operation
INFO: collect2: error: ld returned 1 exit status
INFO: /bin/chmod: cannot access ‘/home/oracle/base/rdbms/12.101/precomp/lib/proc’
INFO: : No such file or directory
INFO: make[1]: Leaving directory `/home/oracle/base/rdbms/12.101/precomp/lib'
INFO: make[1]: *** [/home/oracle/base/rdbms/12.101/precomp/lib/proc] Error 1
INFO: make: *** [proc] Error 2I'm using opensuse 12.3 and I has this error too.
My solution is
1) backup {ORACLE_HOME}/lib/stubs and then delete it.
2) change RMAN_LINKLINE in the file {ORACLE_HOME}/rdbms/lib/env_rdbms.mk
to
RMAN_LINKLINE=$(LINK) $(OPT) $(S0MAIN) $(SSKRMED) $(SKRMPT) \
$(LLIBDBTOOLS) $(LLIBCLIENT) $(LLIBSQL) $(LLIBPLSQL) \
$(LLIBSNLSRTL) $(LLIBUNLSRTL) $(LLIBNLSRTL) \
$(LLIBSLAX) $(LLIBPLSQL) $(LIBPLCN) $(LINKTTLIBS) -lons
3) relink all. -
Glibc-patched 8.1.7.0.1 has undefined references during link
I am receiving the following errors when running 'make -f ins_rdbms install'
after installing the glibc patch for 8.1.7.0.1:
/lib/libnsl.so.1: undefined reference to `svc_getreq_poll@GLIBC_2.2'
/lib/libnsl.so.1: undefined reference to `__strndup@GLIBC_2.2'
/lib/libnsl.so.1: undefined reference to `svc_max_pollfd@GLIBC_2.2'
/lib/libnsl.so.1: undefined reference to `svc_pollfd@GLIBC_2.2'
collect2: ld returned 1 exit status
I am running SuSE Linux 7.1 and have installed all pertinent updates from
the SuSE ftp site. Installation
of the Oracle 8.1.7.0.1 distribution ran flawlessly (after I unset LANG
before running runInstaller).
I downloaded the latest 'glibc-2.1.3-stubs.tar.gz' patch from
technet.oracle.com and installed per the directions in the READMEglibc213.txt file. When
I ran 'setup_stubs.sh', everything appeared to run fine (no visible errors).
I even remembered to fix the root.sh file per the instructions from the SuSE
web site.
Yet when I attempted to build a database (via dbassist or manually), I got
the following error when running svrmgrl:
oracle@mars:~ > svrmgrl
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved.
ORA-12545: Connect failed because target host or object does not exist
SVRMGR>
I discovered that the reason for this was that the 'oracle' executable was
not present in $ORACLE_HOME/bin (I later discovered that a number of other
files were missing as well). Then I noticed that the 'setup_stubs.sh'
script uses 'make -i', which ignores errors. When I ran 'make -f
ins_rdbms.mk install' from $ORACLE_HOME/rdbms/lib, I got the link errors
shown above. Of course, this explains why I don't have an 'oracle' file in
$ORACLE_HOME/bin; it was never created during the patch install.
I tried manually running all of the other relinks manually and all of them
worked with the exception of ctx. When I ran 'make -f ins_ctx.mk' from
$ORACLE_HOME/ctx/lib', I got this:
gcc -o
ctxhxx -L/u01/app/oracle/product/8.1.7/ctx/lib/ -L/u01/app/oracle/product
/8.1.7/lib/ -L/u01/app/oracle/product/8.1.7/lib//stubs/
/u01/app/oracle/produc
t/8.1.7/ctx/lib/ctxhx.o -Wl,-rpath,/u01/app/oracle/product/8.1.7/ctx/lib/ -l
m -l
sc_fa -lsc_fi -lsc_ch -lsc_ut -lsc_ex -lsc_da -lctxhx -lm -lc -lnls8 -lcore
8 -l
nls8 -lcore8 -lnls8
/lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_2.2'
/lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_2.2'
collect2: ld returned 1 exit status
make: *** [ctxhxx] Error 1
I found that the /lib/libc.so.6 library contained the necessary definitions
to these references. However, I am not sure if it is safe to add this to
the list of libraries used during the link.
What concerns me most is that I know a lot of folks have used the patch
successfully, but I cannot think of what I've done wrong. Any ideas?
nullIn case anyone else is having this problem, here is the answer:
The problem only occurs if you include the Oracle Parallel Server option
during installation. In order to get the oracle kernel to re-link after
installing the glibc patch, you need to add -lnsl to the
$ORACLE_HOME/lib/sysliblist like so:
before: -ldl -lm -lpthread
after : -ldl -lm -lnsl -lpthread
Then relink the oracle kernel:
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk install
null -
Installing Oracle 10g R2 on Debian Sarge - Undefined reference
Hi all,
I'm installing Oracle 10g R2 on debina sarge. I know this is possibile. But I'm only a problem during compilation:
INFO: mv -f /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrl /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrlO
INFO: mv /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/dgmgrl /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrl
INFO: chmod 751 /opt/oracle/oracle/product/10.2.0/db_1/bin/dgmgrl
INFO:
INFO: - Linking tg4pwd utility
INFO: rm -f /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd
INFO: gcc -o /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd -L/opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/ -L/opt/oracle/oracle/product/10.2.0/db_1/lib/ -L/opt/oracle/oracle/product/10.2.0/db_1/lib/stubs/ -L/usr/lib -lirc /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd.o /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/defopt.o /opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/homts.o -lagtsh -lpls10 -lplp10 -lclntsh -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnl
INFO: s10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 /opt/oracle/oracle/product/10.2.0/db_1/lib/libgeneric10.a `cat /opt/oracle/oracle/product/10.2.0/db_1/lib/sysliblist` -Wl,-rpath,/opt/oracle/oracle/product/10.2.0/db_1/lib -lm `cat /opt/oracle/oracle/product/10.2.0/db_1/lib/sysliblist` -ldl -lm -L/opt/oracle/oracle/product/10.2.0/db_1/lib -lvsn10
INFO: /opt/oracle/oracle/product/10.2.0/db_1/lib//libagtsh.so: undefined reference to `nnfyboot'
collect2: ld returned 1 exit status
make: *** [opt/oracle/oracle/product/10.2.0/db_1/rdbms/lib/tg4pwd] Error 1
I do not know if I miss a library. Who can help me?
Thanks
StefanoThis happened to me also when installing on Slackware (current, now 10.2). Whenever you get errors in the OUI during the link phase, you should also take a look at $ORACLE_HOME/install/make.log. Turns out that the shared library libagtsh.so wasn't build which caused the errors during the link phase. Oracle expects 'basename' to be in /bin. Furthermore I noticed that Oracle expects 'libgcc_s.so.1' to be in /lib. On Slackware I did the following to successfully install 10g Release 2:
cd /bin ; ln -sf /usr/bin/basename basename
cd /lib ; ln -sf /usr/lib/libgcc_s.so.1 libgcc_s.so.1 ; ln -sf libgcc_s.so.1 libgcc_s.so
Hope this helps,
Joep -
Hello,
I used the follow command to build cvm in cdc:
make CVM_DEBUG=true CVM_JAVABIN=$JAVA_HOME/bin
CVM_GNU_TOOLS_PATH=/usr/bin
The gcc's version is 2.95.3. J2SE version is J2SE 1.4. OS is Fedora 3. I got the following error message:
Linking ../../build/linux-i686/bin/cvm
../../build/linux-i686/obj/UNIXProcess_md.o(.text+0x3ab): In function `sigchld_handler':
/root/cdcfoundation/build/linux-i686/../../src/linux/native/java/lang/UNIXProcess_md.c:213: undefined reference to `__libc_wait'
collect2: ld returned 1 exit status
make: *** [../../build/linux-i686/bin/cvm] Error 1
I think this problem relates to java and glibc library in redhat. Can someone give some propositions?
Thanks a lot for help in advance!!
zhiyongSee here (original topic was double posted)
http://forum.java.sun.com/thread.jspa?messageID=3528322� -
Getting undefined reference error
Hi Iam using GCC 4.1.2 in solaris with Oracle 9.0.2
I have the following program
#include <iostream.h>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
int main()
Environment *Env = Environment::createEnvironment(Environment::DEFAULT);
When I do compile Iam getting the error
undefined Reference Environment::createEnvironment(Environment::Mode,void,void.....
etc error
Please let me mkw what Iam missingAfter also Iam getting this error still in Solaris, g++ 4.1.2 with Oracle 9.2.0
Undefined first referenced
symbol in file
__1cG__CrunKpure_error6F_v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mpkc_r1_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cG__CrunIex_alloc6FI_pv_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2G6Mrk1_r1_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6MpkcIrkn0C__v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cH__rwstdRexcept_msg_string2t6MIE_v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___2t6Mpkcrkn0C__v_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
__1cDstdMbasic_string4Ccn0ALchar_traits4Cc__n0AJallocator4Cc___Gassign6Mrk1II_r1_ /usr/local/pkg/oracle/9.2.0/lib/libocci.so
_ -
Hi,
I just tried to compile my DAQ code using nigpib-0.8.3 using gcc3.2 on linux.
I get the following error:
/usr/local/nigpib/libgpib.a(cib.o): In function `oserr':
/home/dwilson/src/nigpib-0.8.2/Linux-x86/cib.c:59: undefined reference to `errno'
collect2: ld returned 1 exit status
I get the same error for nigpib-0.8.2
Any ideas?
Thanks a lot.
WolfgangHi Wolfgang,
It seems that somehow the cib.c file had some extra information left over that caused the problem! Sorry. Just redownload the driver and you should be set!
Best Regards,
Aaron K.
Application Engineer
National Instruments -
When install db 10.2.0.1, report many undefined reference error.
Hi,
I try install the db 10.2.0.1 under fc4 linux.
I select to install software only, but report error:
Error invoking target 'relink' of makefile
'/usr/local/oracle/db10g/precomp/lib/ins_precomp.mk' ...
I check the install/make.log, there are many "undefined reference" error, as following:
/usr/bin/make -f ins_precomp.mk relink ORACLE_HOME=/usr/local/oracle/db10g EXENAME=proc/Linking /usr/local/oracle/db10g/precomp/lib/proc
/usr/local/oracle/db10g/lib//libclntsh.so: warning: warning: this program uses gets(), which is unsafe.
/usr/local/oracle/db10g/precomp/lib/pdc.o(.text+0x236): In function `pdlitlen':
: undefined reference to `__ctype_b_loc'
/usr/local/oracle/db10g/precomp/lib/libpgp.a(pgstdf.o)(.text+0x39e): In function `pgswget':
: undefined reference to `_IO_getc'
Whether some lib be not found?
Thanks!Keep reading the link log, those are warnings. there is an actual error somewhere.
-
Compiling errors libGL.so: undefined reference to `_nv001833gl
i encountered these errors when compiling alienarena and projectM:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001833gl'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001835gl'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001834gl'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.3/../../../../lib/libGL.so: undefined reference to `_nv001836gl'
im using arch64, nvidia drivers nvidia-180.29-3..
can someone explain me what is going wrong here ?cant compile amarok2 from aur, same error. so i tried the beta driver 185.13, but after the kdm symbols faded in it doesnt switch to the desktop. im back to 180.29.
this is very annoying, as i simply have not the knowledge to fix stuff like that -
I am trying to install Oracle 9i client to a Redhat Fedora 4 box. I get roughly 60% into the linking process and then my make.log shows:
/usr/lib/gcc/i386-redhat-linux/4.0.0/libgcc_s.so: undefined reference to `dl_iterate_phdr@GLIBC_2.2.4'
collect2: ld returned 1 exit status
make: *** [sqlplus] Error 1
Is there a fix for this for FC4 or a RPM I'm missing?
Thanks,
AdamHello Ivan,
all you said here seems to be helpful for anyone but me. Cause I'm using FCC3 with defaul gcc-3.4.2 .
If I try to install gcc-2.96, it says "a newer version is already installed".
I forced a downgrade but it failed.
[root@localhost tmp]# rpm -Uvh --force compat-gcc-7.3-2.96.126.i386.rpm
error: Failed dependencies:
compat-gcc = 8-3.3.4.2 is needed by (installed) compat-gcc-c++-8-3.3.4.2.i386
Can you help? I admit I am junior in the Linux world. -
I got this error when i try to run sample database access using OCCI libraries.
test.cpp:21: undefined reference to `oracle::occi::Environment::createEnvironment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned int), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
Following link contains same problem but there is no answer.
#include <iostream>
#include <occi.h>
using oracle::occi::Connection;
using oracle::occi::Environment;
using oracle::occi::Statement;
using oracle::occi::ResultSet;
using namespace std;
int main() {
Environment *environment;
Connection *con;
Statement* stmt;
ResultSet* res;
try {
//std::cout << "dasfasfafa";
environment = Environment::createEnvironment(oracle::occi::Environment::DEFAULT);
con = environment->createConnection("aaa", "aaa", "Caaa");
stmt = con->createStatement("select * from emp");
res = stmt->executeQuery();
while (res->next())
std::cout << res->getInt(1) << " " << res->getString(2) << std::endl;
stmt->closeResultSet(res);
con->terminateStatement(stmt);
environment->terminateConnection(con);
} catch (oracle::occi::SQLException &e) {
std::cout << e.what();
return 0;
}The demos have this:
#include <iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
... -
PRO*C: undefined reference to sqlcxt
Precompilation runs without error (proc test.pc).
But Linker (after compiler-run) says:
gcc -L/save/u01/app/oracle/product/815/lib
-I/save/u01/app/oracle/product/815/precomp/public test.c
/tmp/ccKOZqpD: In function `main':
/tmp/ccKOZqpD(.text+0x1d7): undefined reference to `sqlcxt'
/tmp/ccKOZqpD(.text+0x37b): undefined reference to `sqlcxt'
bash-2.01$
Looking up test.c I found a comment saying that sqlcxt is
member of sqllib:
/* SQLLIB Prototypes */
extern sqlcxt (/*_ void **, unsigned int *,
struct sqlexd *, struct sqlcxp * _*/);
Unfortunately in library .../lib/sqllib I can3t find sqlcxt.
No Problems running sqlplus, sqlload, exp, imp,...
Anybody any idea why linking doesn3t work?
Which library includes function sqlcxt?
Thank You.
nullHi,
This is often the result of failing to include the orasqlX.lib file as input to the linker.
I have a walkthrough of integrating Pro*C with Visual Studio here:
http://oradim.blogspot.com/2009/05/oracle-proc-on-windows-with-express.html
Maybe that will be of some help.
How are you linking?
Regards,
Mark -
Linker error «error: undefined reference to '__ZN7problemC1Ev'»
Here's some code I have been trying to compile all day and having gotten a cryptic linker error that I can't figure out.
First here is my Makefile:
T09: check
@echo "-------- problem --------"
"$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) main.cpp -swf-size=960x540 -emit-swf -o problem.swf -lAS3++ -lFlash++
include ../Makefile.common
clean:
rm -f *.swf
main.cpp
#include "AS3/AS3.h"
#include "problem.h"
int main()
problem *prob;
prob = new problem;
printf("main\n");
AS3_GoAsync();
problem.h
#ifndef _STATE_GAME_H_
#define _STATE_GAME_H_
#include "AS3/AS3++.h" // using AS3 var wrapper class
#include "Flash++.h" // using AVM2 sync primitives
// use "ui" AS3 var wrappers which marshall var manipulations to the ui Worker
using namespace AS3::ui;
class state_Game;
class state_Menu;
class problem {
public:
problem();
void changeState(int k, state_Game *sg);
var update(state_Game *sg);
#endif
problem.cpp
#include "problem.h"
#ifndef _STATE_GAME_H_
#define _STATE_GAME_H_
#include "object_Background.h"
void problem::changeState(int k, state_Game *sg)
if (sg->getCurrrentState() >= 0)
sg->clearState();
sg->setCurrrentState(-1);
state_Menu *psm;
psm = new state_Menu;
var problem::update(state_Game *sg)
sg->update();
problem::problem()
state_Game *gameState;
gameState = new state_Game;
object_Background *background;
background = new object_Background;
changeState(0, gameState); //set to MENU_STATE at first
#endif
state_Menu.h
#ifndef _STATE_GAME_H_
#define _STATE_GAME_H_
#include "state_Game.h"
class state_Menu : public state_Game
public:
state_Menu()
#endif
state_Game.h
class state_Game {
private:
int current_state;
public:
state_Game()
current_state = -1;
void makeState()
void clearState()
void update()
int getCurrrentState()
return current_state;
void setCurrrentState(int k)
current_state = k;
When I compile this I get the following linker error:
/var/folders/fs/ldvqpfrd2ng11w5d26f6qq540000gn/T//ccVLfrEH.o: error: undefined reference to '__ZN7problemC1Ev'
This is a compiler generated file, '__ZN7problemC1Ev'. I don't know why this is occurring since their are no errors in the compile phase and I do not have a class of this name.
Can someone help me understand what is going on here?EDIT: Haha, so by the time I wrote this post, 3 people have already responded. Some of the stuff I cover has already been said.
So I took a more in depth look at your code and I noticed a couple things. Granted, it's hard to debug code when I only have a small chunk but here's what I noticed:
(Super small bug) You need to #include <stdio.h> in your main.cpp for the printf.
There is a #ifndef _STATE_GAME_H_ in almost every file. During the pre-processing, it will pick up the fact that in subsequent files that you have this in, it will not include them. So, if you want to have each file included make a new pre-processor directive for each file.
problem.h => #ifndef _PROBLEM_H_
state_Game.h => #ifndef _STATE_GAME_H_
state_Menu.h => #ifndef _STATE_MENU_H_
Also, as a side note for #2, don't put those #ifndefs in the .cpp files. They only need to be in the .h, but #include the .h in the .cpp.
You don't seem to put parens after any of your constructors. You may want to explicitly specify to the compiler to use the nullary constructors.
ex:
=== main.cpp ===
#include <stdio.h>
#include "problem.h"
int main()
problem *prob = new problem(); // <- this might be the problem
printf("main\n");
AS3_GoAsync();
=== problem.cpp ===
#include "problem.h"
#include "state_Menu.h"
#include "state_Game.h"
#include "object_Background.h"
problem::problem()
state_Game *gameState = new state_Game();
object_Background *background = new object_Background();
changeState(0, gameState); //set to MENU_STATE at first
Finally, I've come to notice that putting .h files in the Makefile's build command does nothing. It will only respond to adding .cpp files. So for your state_Menu.h and state_Game.h files - as long as the pre-processing directives are setup correctly - they will be automagically included because there is no corresponding .cpp file. As long as problem.cpp and main.cpp are the only 2 .cpp files in your project, this commend will work.
"$(FLASCC)/usr/bin/g++" $(BASE_CFLAGS) problem.cpp main.cpp -swf-size=960x540 -emit-swf -o problem.swf -lAS3++ -lFlash++ -
HRMS application
EBS 11.5.10.2
db 11.2.0.3
Suse 11 sp2 split configuration.
Hi,
I have upgraded suse linux to 11 sp2 from version 10 sp4 not realising suse 11 version not certified by EBS 11.5.10.2 .
Application is running fine but when I tried apply patch its is failing at relink level.
usr/lib/gcc/i586-suse-linux/4.3/libgcc_s.so: undefined reference to
`dl_iterate_phdr@GLIBC_2.2.4'
collect2: ld returned 1 exit status
make: *** [data/lnxtestappl/fnd/11.5.0/bin/ar60desb] Error 1
Done with link of fnd executable 'ar60desb' on Wed Oct 17 15:21:32 EDT 2012
Relink of module "ar60desb" failed.
We have following packages on the system.
Is there any work around without down grading OS to version 10?
rpm -qa gcc|more
gcc43-4.3.4_20091019-0.22.17
gcc43-c++-4.3.4_20091019-0.22.17
libgcc-4.1.2_20070115-0.32.53
gcc-c++-4.3-62.198
gcc-4.3-62.198
libgcc46-4.6.1_20110701-0.13.9
Hep is really really appreciated.
Thanks.I have upgraded suse linux to 11 sp2 from version 10 sp4 not realising suse 11 version not certified by EBS 11.5.10.2 .
Application is running fine but when I tried apply patch its is failing at relink level.
usr/lib/gcc/i586-suse-linux/4.3/libgcc_s.so: undefined reference to
`dl_iterate_phdr@GLIBC_2.2.4'
collect2: ld returned 1 exit status
make: *** [data/lnxtestappl/fnd/11.5.0/bin/ar60desb] Error 1
Done with link of fnd executable 'ar60desb' on Wed Oct 17 15:21:32 EDT 2012
Relink of module "ar60desb" failed.
We have following packages on the system.
Is there any work around without down grading OS to version 10?If it is not certified, I would not suggest any workaround and I would only suggest you run on a certified OS.
Thanks,
Hussein
Maybe you are looking for
-
Shared Photo Streams not Working for me....
Hi I have everything set up. I can select and create a Phtostream folder and send invites out to join. The invites arrive and when the intivtee clicks to join, they are told the service is not available right now, or that the photostream is no longer
-
Add search help to customer field in ESS Leave
Hi All , I was able to add some required field on the screen by the customer fields like Country. But some fields need search help, can anyone advice how to add search help. Is it possible to add field from webdynpro code also , so that I can give se
-
Where do iTunesU podcasts go on iOS5? Don't appear in 'More'.
Where do iTunesU podcasts go on iOS5? Don't appear in 'More'.
-
Premiere CS4 doesn't work on Windows 7
I have a delicious new Windows 7 edit suite I built for nearly 3 grand, and Adobe Production Premium CS4. Premiere doesn't work properly. I urgently need to edit a TV documentary. I don't have time to mess around, that's why I paid for the software r
-
Today i was working on my mac book and all is well, i put it to sleep and keep it in a case (on a bus for a sports trip), I get in the car and set it down like normal (very gently), i come home and open my Mac Book, it powers on like normal and i kno