klone 发表于 2008-10-6 11:57:54

HP-unix下编译ACE出问题,求教!

Error 711: "/opt/comp_dev/ACE_wrappers/ace/OS_NS_signal.inl", line 37 # There is no matching declaration for 'int
    sigaction(int,const sigaction *,sigaction *)' in namespace "namespace ACE_OS".
    ACE_OS::sigaction (int signum,
            ^^^^^^^^^            
Error 698: Exact position unknown; near ["/opt/comp_dev/ACE_wrappers/ace/OS_NS_signal.inl", line 64]. # The declarations
    struct sigaction and struct sigaction are both visible and neither is preferred under the name lookup rules.
Error 742: "/opt/comp_dev/ACE_wrappers/ace/OS_NS_signal.inl", line 64 # Source type const sigaction * and target type
    sigaction * in a const_cast can only differ in their qualifiers
      ACE_OSCALL_RETURN (::sigaction (signum,

以上是错误提示,我的配置环境:
aCC :03.55
cc:11.01.21
HP: 11.11.u.9000/800
ACE:5.4
以下是./profile的内容


# Set up the search paths:
      PATH=$PATH:.
      PATH=$PATH:/opt/aCC/bin
# Set up the shell environment:
      set -u
      trap "echo 'logout'" 0

# Set up the shell variables:
      EDITOR=vi
      export EDITOR

#ACE_ROOT
ACE_ROOT=/opt/comp_dev/ACE_wrappers; export ACE_ROOT
LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib;
export LD_LIBRARY_PATH
SHLIB_PATH=$ACE_ROOT/ace;export SHLIB_PATH

winston 发表于 2008-10-6 23:42:30

感觉还是对照一下ACE版本和OS环境、编译环境的匹配情况。Linux/ Unix和Windows情况不同,Linux/Unix版本众多,环境千差万别,很多问题都是环境引起的。
页: [1]
查看完整版本: HP-unix下编译ACE出问题,求教!