免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2253 | 回复: 0
打印 上一主题 下一主题

[Tru64 UNIX] tru64平台下cxx编译,出现ld:Unresolved:错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-24 18:11 |只看该作者 |倒序浏览
我用的编译选项是
COPTIONS = -c -g -pt -pthread -D_XPG4_EXTENDED -Wall -DRWSTD_MULTI_THREAD -D_REENTRANT
CFLAGS   = $(COPTIONS) $(CINCDIRS) $(USEROPTS)
LDFLAGS  =  -o $(OUTPUT)
INCLUDEDIR = -I/usr/ccs/lib/cmplrs/cxx/V6.3-018/include/cxx/
LINK_WITH=  -lpthread -lm -lrt
# Compilation rules
#
CC = cxx
LD = cxx

警告和错误如下:
cxx -o processmonitor.o -c -g -pt -pthread -D_XPG4_EXTENDED -Wall -DRWSTD_MULTI_THREAD -D_REENTRANT -I/usr/ccs/lib/cmplp
cxx: Warning: ../snmp/snmp++/include/snmp_pp/uxsnmp.h, line 372: integer
          conversion resulted in truncation
                       const int fd = INVALID_SOCKET);
--------------------------------------^
cxx: Warning: ../snmp/snmp++/include/snmp_pp/uxsnmp.h, line 601: integer
          conversion resulted in truncation
                   int fd = INVALID_SOCKET);
----------------------------^
cxx -o main.o -c -g -pt -pthread -D_XPG4_EXTENDED -Wall -DRWSTD_MULTI_THREAD -D_REENTRANT -I/usr/ccs/lib/cmplp
cxx -o monitor  processmonitor.o main.o -L../snmp/snmp++/lib -L../publib -lsnmp++ -lzhaopub  -lpthread -lm -lt
ld:
Unresolved:
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(unsigned long, unsigned long,
_RWrwstd::_RWrb_tree<unsigned int, unsigned int, _RWrwstd::_RWident<unsigned int, unsigned int>, std::less<un)
_RWrwstd::_RWrb_tree<unsigned int, unsigned int, _RWrwstd::_RWident<unsigned int, unsigned int>, std::less<un
std::vector<int, std::allocator<int> >::_RWinsert_aux(int*, const int&)
std::vector<unsigned long, std::allocator<unsigned long> >::_RWinsert_aux(unsigned long*, const unsigned long)
std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str(const std::basic_string<ch)
std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::str(void) const
make: *** [monitor] Error 1

我分析应该是缺少联接的一些选项,如何解决阿?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP