- 论坛徽章:
- 0
|
我用的编译选项是
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
我分析应该是缺少联接的一些选项,如何解决阿? |
|