onvif设备发现代码利用海思carm-hisiv100nptl-linux-g++ 交叉编译器编译时出现如下问题,有人可以解答下吗

make clean;makerm -f *.o deviceprobe deviceserverarm-hisiv100nptl-linux-g++ -Wall -DHI_OS_LINUX -DHI_OS_TYPE=HI_OS_LINUX -DCONFIG_NETWORK_USE_SYSTEM -DHI_LINUX_SUPPORT_UCLIBC -DHI_OS_SUPPORT_UCLINUX -DHI_MEMORY_DEBUG -c -o soapC.o soapC.carm-hisiv100nptl-linux-g++ -Wall -DHI_OS_LINUX -DHI_OS_TYPE=HI_OS_LINUX -DCONFIG_NETWORK_USE_SYSTEM -DHI_LINUX_SUPPORT_UCLIBC -DHI_OS_SUPPORT_UCLINUX -DHI_MEMORY_DEBUG -c -o stdsoap2.o stdsoap2.carm-hisiv100nptl-linux-g++ -Wall -DHI_OS_LINUX -DHI_OS_TYPE=HI_OS_LINUX -DCONFIG_NETWORK_USE_SYSTEM -DHI_LINUX_SUPPORT_UCLIBC -DHI_OS_SUPPORT_UCLINUX -DHI_MEMORY_DEBUG -c -o soapServer.o soapServer.cg++ -c -o discoveryserver.o discoveryserver.cpparm-hisiv100nptl-linux-g++ -Wall -DHI_OS_LINUX -DHI_OS_TYPE=HI_OS_LINUX -DCONFIG_NETWORK_USE_SYSTEM -DHI_LINUX_SUPPORT_UCLIBC -DHI_OS_SUPPORT_UCLINUX -DHI_MEMORY_DEBUG -c -o soapClient.o soapClient.cg++ -c -o main.o main.cppIn file included from main.cpp:11:onvifInterface.h: In function ‘int __wsdd__Probe(soap*, wsdd__ProbeType*)’:onvifInterface.h:40: warning: deprecated conversion from string constant to ‘char*’onvifInterface.h:43: warning: deprecated conversion from string constant to ‘char*’onvifInterface.h:107: warning: deprecated conversion from string constant to ‘char*’onvifInterface.h:108: warning: deprecated conversion from string constant to ‘char*’arm-hisiv100nptl-linux-g++ -I/home/work/onvif/gsoap-2.8/gsoap -o deviceserver -Wall -DHI_OS_LINUX -DHI_OS_TYPE=HI_OS_LINUX -DCONFIG_NETWORK_USE_SYSTEM -DHI_LINUX_SUPPORT_UCLIBC -DHI_OS_SUPPORT_UCLINUX -DHI_MEMORY_DEBUG -lpthread soapC.o stdsoap2.o soapServer.o discoveryserver.o soapClient.o main.o /opt/hisi-linux-nptl/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/bin/ld: discoveryserver.o: Relocations in generic ELF (EM: 3)/opt/hisi-linux-nptl/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/bin/ld: discoveryserver.o: Relocations in generic ELF (EM: 3)/opt/hisi-linux-nptl/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/bin/ld: discoveryserver.o: Relocations in generic ELF (EM: 3)/opt/hisi-linux-nptl/arm-hisiv100-linux/bin/../lib/gcc/arm-hisiv100-linux-uclibcgnueabi/4.4.1/../../../../arm-hisiv100-linux-uclibcgnueabi/bin/ld: discoveryserver.o: Relocations in generic ELF (EM: 3)discoveryserver.o: could not read symbols: File in wrong formatcollect2: ld returned 1 exit statusmake: *** [server] 错误 1

你可能感兴趣的:(Linux,C/C++,嵌入式开发)