求助解决sunos5.9 平台gcc编译报错问题

zhengyubellson 2008-03-27 09:52:54
本来在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
...全文
182 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhengyubellson 2008-04-01
  • 打赏
  • 举报
回复
问题已经解决了,不光是路径的问题,而且还有occi连接的问题,solaries,occi中只能用sun自带的编译器CC编译..然后再跳了编译参数就好了
dxing_1983 2008-03-28
  • 打赏
  • 举报
回复
没整个sun的
以linux的经验应该是路径的问题

23,115

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧