求助解决sunos5.9 平台gcc编译报错问题
本来在IBM AIX上跑的程序,现在移植到sunos 5.9 上,用gcc,或者g++编译报的错误,哪位高手帮我看看..手里只有90积分,如果解决了随便哪去,谢谢!声明:源程序肯定是没问题的,只是移植过来可能我一些环境变量,路径配置甚么的没配对...下面是错误报告,没整过sun的平台..所以不是很清楚
$ make remake
rm -f src/*.o
g++ -c -I. -I/orajf/arch/zhcjtest/sunshine/develop/public/include -Iinclude -I/oracle/product/9.2.0/precomp/public -I/oracle/product/9.2.0/rdbms/demo -I/oracle/product/9.2.0/rdbms/public -DLINUX -fPIC -g -O2 -I. -I./include -DNAMESPACE -D_GNU_SOURCE -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -DSLTS_ENABLE -DSLMXMX_ENABLE -D_REENTRANT -DNS_THREADS -o src/common.o src/common.cpp
src/common.cpp: In static member function `static void util::common::round(int, int, double&)':
src/common.cpp:420: error: `::round' has not been declared
src/common.cpp: At global scope:
src/common.cpp:807: error: no `int util::common::grt_com_div(int, int)' member function declared in class `util::common'
src/common.cpp: In member function `int util::common::grt_com_div(int, int)':
src/common.cpp:818: error: `grt_com_div' was not declared in this scope
src/common.cpp: At global scope:
src/common.cpp:824: error: no `int util::common::grt_com_div(std::vector<int, std::allocator<int> >&)' member function declared in class `util::common'
src/common.cpp: In member function `int util::common::grt_com_div(std::vector<int, std::allocator<int> >&)':
src/common.cpp:831: error: `grt_com_div' was not declared in this scope
src/common.cpp: At global scope:
src/common.cpp:838: error: no `int util::common::ls_com_mul(int, int)' member function declared in class `util::common'
*** Error code 1
make: Fatal error: Command failed for target `src/common.o'
用户下的.profile文件设置:
ORACLE_DOC=$ORACLE_HOME/doc; export ORACLE_DOC
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
LD_LIBARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib;export LD_LIBARY_PATH
PATH=$PATH:/usr/sbin:/usr/bin:/oracle/product/9.2.0/bin:/usr/ccs/bin:/opt/Studio8/SUNWspro/bin/:.
export PATH