(.text+0x): multiple definition of 问题及解决

本文介绍了解决QT工程中因重复编译同一.cpp文件导致的链接错误的方法。通过对x.pro文件进行检查和调整,成功消除了编译过程中出现的多个定义错误。

QT工程x.pro,

qmake  x.pro生成Makefile,

make

最后生成目标文件时,连接出错:

“(.text+0x0): multiple definition of ”的错误,查找,有原因是因为#include ".cpp/.c",检查代码,不是此问题。

用nm   编译的文件.o,未现出多个相同的方法名。

检查Makefile,发现2处理相同的   .o编译配置,相同的cpp编译成相同的.o。

检查x.pro,发现2处理相同的   .cpp文件。

修改x.pro,删除其中一处理,

qmke

make

编译通过。

后继,对比两次生成的.o,大小相同, nm两次生成的.o,输出的信息相同(不知道编译器如何区别出来 ,TODO: )



gezi@ubuntu:~/study/pubilc/camerademo8/LinkSDK$ make : Compiling portfiles/aiot_port/posix_port.c ... : Compiling core/aiot_state_api.c ... : Compiling core/sysdep/core_adapter.c ... : Compiling core/sysdep/core_sysdep.c ... : Compiling core/aiot_mqtt_api.c ... : Compiling core/utils/core_auth.c ... : Compiling core/utils/core_diag.c ... : Compiling core/utils/core_sha256.c ... : Compiling core/utils/core_string.c ... : Compiling core/utils/core_global.c ... : Compiling core/utils/core_log.c ... : Compiling curl/share/doc/wolfssl/example/sctp-server-dtls.c ... : Compiling curl/share/doc/wolfssl/example/client.c ... : Compiling curl/share/doc/wolfssl/example/echoserver.c ... : Compiling curl/share/doc/wolfssl/example/sctp-client.c ... : Compiling curl/share/doc/wolfssl/example/sctp-server.c ... : Compiling curl/share/doc/wolfssl/example/tls_bench.c ... : Compiling curl/share/doc/wolfssl/example/async_client.c ... : Compiling curl/share/doc/wolfssl/example/sctp-client-dtls.c ... : Compiling curl/share/doc/wolfssl/example/client/client.c ... : Compiling curl/share/doc/wolfssl/example/async_server.c ... : Compiling curl/share/doc/wolfssl/example/echoclient.c ... : Compiling curl/share/doc/wolfssl/example/server.c ... : Compiling components/logpost/aiot_logpost_api.c ... : Compiling components/mqtt_upload/upload_crc64.c ... : Compiling components/mqtt_upload/aiot_mqtt_upload_api.c ... : Compiling components/data-model/aiot_dm_api.c ... : Compiling components/curl/share/doc/wolfssl/example/sctp-server-dtls.c ... : Compiling components/curl/share/doc/wolfssl/example/client.c ... : Compiling components/curl/share/doc/wolfssl/example/echoserver.c ... : Compiling components/curl/share/doc/wolfssl/example/sctp-client.c ... : Compiling components/curl/share/doc/wolfssl/example/sctp-server.c ... : Compiling components/curl/share/doc/wolfssl/example/tls_bench.c ... : Compiling components/curl/share/doc/wolfssl/example/async_client.c ... : Compiling components/curl/share/doc/wolfssl/example/sctp-client-dtls.c ... : Compiling components/curl/share/doc/wolfssl/example/client/client.c ... : Compiling components/curl/share/doc/wolfssl/example/async_server.c ... : Compiling components/curl/share/doc/wolfssl/example/echoclient.c ... : Compiling components/curl/share/doc/wolfssl/example/server.c ... : Compiling components/examples/echoclient/echoclient.c ... : Compiling components/examples/sctp/sctp-server-dtls.c ... : Compiling components/examples/sctp/sctp-client.c ... : Compiling components/examples/sctp/sctp-server.c ... : Compiling components/examples/sctp/sctp-client-dtls.c ... : Compiling components/examples/benchmark/tls_bench.c ... : Compiling components/examples/pem/pem.c ... : Compiling components/examples/asn1/asn1.c ... : Compiling components/examples/async/async_tls.c ... : Compiling components/examples/async/async_client.c ... : Compiling components/examples/async/async_server.c ... : Compiling components/examples/echoserver/echoserver.c ... : Compiling components/examples/server/server.c ... : Compiling components/examples/client/client.c ... : Compiling components/ntp/aiot_ntp_api.c ... : Compiling external/mbedtls/library/entropy.c ... : Compiling external/mbedtls/library/sha256.c ... : Compiling external/mbedtls/library/debug.c ... : Compiling external/mbedtls/library/sha512.c ... : Compiling external/mbedtls/library/ssl_ciphersuites.c ... : Compiling external/mbedtls/library/rsa.c ... : Compiling external/mbedtls/library/aes.c ... : Compiling external/mbedtls/library/ssl_cookie.c ... : Compiling external/mbedtls/library/cipher.c ... : Compiling external/mbedtls/library/asn1parse.c ... : Compiling external/mbedtls/library/rsa_internal.c ... : Compiling external/mbedtls/library/pkparse.c ... : Compiling external/mbedtls/library/md.c ... : Compiling external/mbedtls/library/pk.c ... : Compiling external/mbedtls/library/cipher_wrap.c ... : Compiling external/mbedtls/library/bignum.c ... : Compiling external/mbedtls/library/error.c ... : Compiling external/mbedtls/library/sha1.c ... : Compiling external/mbedtls/library/ctr_drbg.c ... : Compiling external/mbedtls/library/pem.c ... : Compiling external/mbedtls/library/x509.c ... : Compiling external/mbedtls/library/md_wrap.c ... : Compiling external/mbedtls/library/base64.c ... : Compiling external/mbedtls/library/x509_crt.c ... : Compiling external/mbedtls/library/ssl_cli.c ... : Compiling external/mbedtls/library/platform.c ... : Compiling external/mbedtls/library/platform_util.c ... : Compiling external/mbedtls/library/ssl_tls.c ... : Compiling external/mbedtls/library/pk_wrap.c ... : Compiling external/mbedtls/library/oid.c ... : Compiling external/ali_ca_cert.c ... + Linking output/lib/libaiot.so ... output/./curl/share/doc/wolfssl/example/client.o: In function `main': client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/echoserver.o: In function `main': echoserver.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/sctp-client.o: In function `main': sctp-client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/sctp-server.o: In function `main': sctp-server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/tls_bench.o:(.bss+0x8): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./curl/share/doc/wolfssl/example/tls_bench.o:(.bss+0x4): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./curl/share/doc/wolfssl/example/tls_bench.o: In function `main': tls_bench.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/async_client.o: In function `main': async_client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/sctp-client-dtls.o: In function `main': sctp-client-dtls.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/client/client.o: In function `client_test': client.c:(.text+0x11ec): multiple definition of `client_test' output/./curl/share/doc/wolfssl/example/client.o:client.c:(.text+0x11ec): first defined here output/./curl/share/doc/wolfssl/example/client/client.o:(.bss+0x1010): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./curl/share/doc/wolfssl/example/client/client.o:(.bss+0x100c): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./curl/share/doc/wolfssl/example/client/client.o:(.data.rel.local+0x308): multiple definition of `starttlsCmd' output/./curl/share/doc/wolfssl/example/client.o:(.data.rel.local+0x308): first defined here output/./curl/share/doc/wolfssl/example/client/client.o: In function `main': client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/async_server.o: In function `main': async_server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/echoclient.o: In function `main': echoclient.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./curl/share/doc/wolfssl/example/server.o:(.bss+0x10): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./curl/share/doc/wolfssl/example/server.o:(.bss+0xc): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./curl/share/doc/wolfssl/example/server.o: In function `main': server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/sctp-server-dtls.o: In function `main': sctp-server-dtls.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/client.o: In function `client_test': client.c:(.text+0x11ec): multiple definition of `client_test' output/./curl/share/doc/wolfssl/example/client.o:client.c:(.text+0x11ec): first defined here output/./components/curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/curl/share/doc/wolfssl/example/client.o:(.data.rel.local+0x308): multiple definition of `starttlsCmd' output/./curl/share/doc/wolfssl/example/client.o:(.data.rel.local+0x308): first defined here output/./components/curl/share/doc/wolfssl/example/client.o: In function `main': client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/echoserver.o: In function `echoserver_test': echoserver.c:(.text+0x78): multiple definition of `echoserver_test' output/./curl/share/doc/wolfssl/example/echoserver.o:echoserver.c:(.text+0x78): first defined here output/./components/curl/share/doc/wolfssl/example/echoserver.o: In function `main': echoserver.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/sctp-client.o: In function `main': sctp-client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/sctp-server.o: In function `main': sctp-server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/tls_bench.o: In function `bench_tls': tls_bench.c:(.text+0x2394): multiple definition of `bench_tls' output/./curl/share/doc/wolfssl/example/tls_bench.o:tls_bench.c:(.text+0x2394): first defined here output/./components/curl/share/doc/wolfssl/example/tls_bench.o:(.bss+0x8): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/curl/share/doc/wolfssl/example/tls_bench.o:(.bss+0x4): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/curl/share/doc/wolfssl/example/tls_bench.o: In function `main': tls_bench.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/async_client.o: In function `client_async_test': async_client.c:(.text+0x4a0): multiple definition of `client_async_test' output/./curl/share/doc/wolfssl/example/async_client.o:async_client.c:(.text+0x4a0): first defined here output/./components/curl/share/doc/wolfssl/example/async_client.o: In function `main': async_client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/sctp-client-dtls.o: In function `main': sctp-client-dtls.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/client/client.o: In function `client_test': client.c:(.text+0x11ec): multiple definition of `client_test' output/./curl/share/doc/wolfssl/example/client.o:client.c:(.text+0x11ec): first defined here output/./components/curl/share/doc/wolfssl/example/client/client.o:(.bss+0x1010): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/curl/share/doc/wolfssl/example/client/client.o:(.bss+0x100c): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/curl/share/doc/wolfssl/example/client/client.o:(.data.rel.local+0x308): multiple definition of `starttlsCmd' output/./curl/share/doc/wolfssl/example/client.o:(.data.rel.local+0x308): first defined here output/./components/curl/share/doc/wolfssl/example/client/client.o: In function `main': client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/async_server.o: In function `server_async_test': async_server.c:(.text+0x64): multiple definition of `server_async_test' output/./curl/share/doc/wolfssl/example/async_server.o:async_server.c:(.text+0x64): first defined here output/./components/curl/share/doc/wolfssl/example/async_server.o: In function `main': async_server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/echoclient.o: In function `echoclient_test': echoclient.c:(.text+0x78): multiple definition of `echoclient_test' output/./curl/share/doc/wolfssl/example/echoclient.o:echoclient.c:(.text+0x78): first defined here output/./components/curl/share/doc/wolfssl/example/echoclient.o: In function `main': echoclient.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/curl/share/doc/wolfssl/example/server.o:(.bss+0x18): multiple definition of `runWithErrors' output/./curl/share/doc/wolfssl/example/server.o:(.bss+0x18): first defined here output/./components/curl/share/doc/wolfssl/example/server.o: In function `ServerEchoData': server.c:(.text+0xbbc): multiple definition of `ServerEchoData' output/./curl/share/doc/wolfssl/example/server.o:server.c:(.text+0xbbc): first defined here output/./components/curl/share/doc/wolfssl/example/server.o: In function `server_test': server.c:(.text+0xf30): multiple definition of `server_test' output/./curl/share/doc/wolfssl/example/server.o:server.c:(.text+0xf30): first defined here output/./components/curl/share/doc/wolfssl/example/server.o:(.bss+0x10): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/curl/share/doc/wolfssl/example/server.o:(.bss+0xc): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/curl/share/doc/wolfssl/example/server.o:(.bss+0x14): multiple definition of `catastrophic' output/./curl/share/doc/wolfssl/example/server.o:(.bss+0x14): first defined here output/./components/curl/share/doc/wolfssl/example/server.o: In function `main': server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/echoclient/echoclient.o: In function `echoclient_test': echoclient.c:(.text+0x78): multiple definition of `echoclient_test' output/./curl/share/doc/wolfssl/example/echoclient.o:echoclient.c:(.text+0x78): first defined here output/./components/examples/echoclient/echoclient.o: In function `main': echoclient.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/sctp/sctp-server-dtls.o: In function `main': sctp-server-dtls.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/sctp/sctp-client.o: In function `main': sctp-client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/sctp/sctp-server.o: In function `main': sctp-server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/sctp/sctp-client-dtls.o: In function `main': sctp-client-dtls.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/benchmark/tls_bench.o: In function `bench_tls': tls_bench.c:(.text+0x2394): multiple definition of `bench_tls' output/./curl/share/doc/wolfssl/example/tls_bench.o:tls_bench.c:(.text+0x2394): first defined here output/./components/examples/benchmark/tls_bench.o:(.bss+0x8): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/examples/benchmark/tls_bench.o:(.bss+0x4): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/examples/benchmark/tls_bench.o: In function `main': tls_bench.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/pem/pem.o: In function `main': pem.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/asn1/asn1.o:(.data.rel.local+0x0): multiple definition of `usage' output/./components/examples/pem/pem.o:(.data.rel.local+0x0): first defined here /home/gezi/study/work/allwinner/out/t113_i/ebyte_t113i/buildroot/buildroot/host/opt/ext-toolchain/bin/../lib/gcc/arm-linux-gnueabi/7.3.1/../../../../arm-linux-gnueabi/bin/ld: Warning: size of symbol `usage' changed from 76 in output/./components/examples/pem/pem.o to 72 in output/./components/examples/asn1/asn1.o output/./components/examples/asn1/asn1.o: In function `main': asn1.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/async/async_client.o: In function `client_async_test': async_client.c:(.text+0x4a0): multiple definition of `client_async_test' output/./curl/share/doc/wolfssl/example/async_client.o:async_client.c:(.text+0x4a0): first defined here output/./components/examples/async/async_client.o: In function `main': async_client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/async/async_server.o: In function `server_async_test': async_server.c:(.text+0x64): multiple definition of `server_async_test' output/./curl/share/doc/wolfssl/example/async_server.o:async_server.c:(.text+0x64): first defined here output/./components/examples/async/async_server.o: In function `main': async_server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/echoserver/echoserver.o: In function `echoserver_test': echoserver.c:(.text+0x78): multiple definition of `echoserver_test' output/./curl/share/doc/wolfssl/example/echoserver.o:echoserver.c:(.text+0x78): first defined here output/./components/examples/echoserver/echoserver.o: In function `main': echoserver.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/server/server.o:(.bss+0x18): multiple definition of `runWithErrors' output/./curl/share/doc/wolfssl/example/server.o:(.bss+0x18): first defined here output/./components/examples/server/server.o: In function `ServerEchoData': server.c:(.text+0xbbc): multiple definition of `ServerEchoData' output/./curl/share/doc/wolfssl/example/server.o:server.c:(.text+0xbbc): first defined here output/./components/examples/server/server.o: In function `server_test': server.c:(.text+0xf30): multiple definition of `server_test' output/./curl/share/doc/wolfssl/example/server.o:server.c:(.text+0xf30): first defined here output/./components/examples/server/server.o:(.bss+0x10): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/examples/server/server.o:(.bss+0xc): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/examples/server/server.o:(.bss+0x14): multiple definition of `catastrophic' output/./curl/share/doc/wolfssl/example/server.o:(.bss+0x14): first defined here output/./components/examples/server/server.o: In function `main': server.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here output/./components/examples/client/client.o: In function `client_test': client.c:(.text+0x11ec): multiple definition of `client_test' output/./curl/share/doc/wolfssl/example/client.o:client.c:(.text+0x11ec): first defined here output/./components/examples/client/client.o:(.bss+0x1010): multiple definition of `myoptind' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x1010): first defined here output/./components/examples/client/client.o:(.bss+0x100c): multiple definition of `myoptarg' output/./curl/share/doc/wolfssl/example/client.o:(.bss+0x100c): first defined here output/./components/examples/client/client.o:(.data.rel.local+0x308): multiple definition of `starttlsCmd' output/./curl/share/doc/wolfssl/example/client.o:(.data.rel.local+0x308): first defined here output/./components/examples/client/client.o: In function `main': client.c:(.text.startup+0x0): multiple definition of `main' output/./curl/share/doc/wolfssl/example/sctp-server-dtls.o:sctp-server-dtls.c:(.text.startup+0x0): first defined here collect2: error: ld returned 1 exit status Makefile:65: recipe for target 'libaiot' failed make: *** [libaiot] Error 1
最新发布
10-14
./.libs/libglib.a(garray.o): In function `g_bit_nth_lsf': garray.c:(.text+0x140): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(garray.o): In function `g_bit_nth_msf': garray.c:(.text+0x170): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(garray.o): In function `g_bit_storage': garray.c:(.text+0x1b0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(ghash.o): In function `g_bit_nth_lsf': ghash.c:(.text+0x240): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(ghash.o): In function `g_bit_nth_msf': ghash.c:(.text+0x270): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(ghash.o): In function `g_bit_storage': ghash.c:(.text+0x2b0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(glist.o): In function `g_bit_nth_lsf': glist.c:(.text+0x1a0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(glist.o): In function `g_bit_nth_msf': glist.c:(.text+0x1d0): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(glist.o): In function `g_bit_storage': glist.c:(.text+0x210): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gmem.o): In function `g_bit_nth_lsf': gmem.c:(.text+0x50): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gmem.o): In function `g_bit_nth_msf': gmem.c:(.text+0x80): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gmem.o): In function `g_bit_storage': gmem.c:(.text+0xc0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gmessages.o): In function `g_bit_nth_lsf': gmessages.c:(.text+0x680): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gmessages.o): In function `g_bit_nth_msf': gmessages.c:(.text+0x6b0): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gmessages.o): In function `g_bit_storage': gmessages.c:(.text+0x6f0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gmutex.o): In function `g_bit_nth_lsf': gmutex.c:(.text+0x80): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gmutex.o): In function `g_bit_nth_msf': gmutex.c:(.text+0xb0): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gmutex.o): In function `g_bit_storage': gmutex.c:(.text+0xf0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gnode.o): In function `g_bit_nth_lsf': gnode.c:(.text+0x830): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gnode.o): In function `g_bit_nth_msf': gnode.c:(.text+0x860): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gnode.o): In function `g_bit_storage': gnode.c:(.text+0x8a0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gprimes.o): In function `g_bit_nth_lsf': gprimes.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gprimes.o): In function `g_bit_nth_msf': gprimes.c:(.text+0x30): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gprimes.o): In function `g_bit_storage': gprimes.c:(.text+0x70): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(grel.o): In function `g_bit_nth_lsf': grel.c:(.text+0x280): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(grel.o): In function `g_bit_nth_msf': grel.c:(.text+0x2b0): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(grel.o): In function `g_bit_storage': grel.c:(.text+0x2f0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gslist.o): In function `g_bit_nth_lsf': gslist.c:(.text+0xf0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gslist.o): In function `g_bit_nth_msf': gslist.c:(.text+0x120): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gslist.o): In function `g_bit_storage': gslist.c:(.text+0x160): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_lsf': gstrfuncs.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gstrfuncs.o): In function `g_bit_nth_msf': gstrfuncs.c:(.text+0x30): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gstrfuncs.o): In function `g_bit_storage': gstrfuncs.c:(.text+0x70): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gstring.o): In function `g_bit_nth_lsf': gstring.c:(.text+0xb0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gstring.o): In function `g_bit_nth_msf': gstring.c:(.text+0xe0): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gstring.o): In function `g_bit_storage': gstring.c:(.text+0x120): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gtimer.o): In function `g_bit_nth_lsf': gtimer.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gtimer.o): In function `g_bit_nth_msf': gtimer.c:(.text+0x30): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gtimer.o): In function `g_bit_storage': gtimer.c:(.text+0x70): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gtree.o): In function `g_bit_nth_lsf': gtree.c:(.text+0x940): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gtree.o): In function `g_bit_nth_msf': gtree.c:(.text+0x970): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gtree.o): In function `g_bit_storage': gtree.c:(.text+0x9b0): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here ./.libs/libglib.a(gutils.o): In function `g_bit_nth_lsf': gutils.c:(.text+0x0): multiple definition of `g_bit_nth_lsf' testglib.o:testglib.c:(.text+0x130): first defined here ./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf': gutils.c:(.text+0x30): multiple definition of `g_bit_nth_msf' testglib.o:testglib.c:(.text+0x160): first defined here ./.libs/libglib.a(gutils.o): In function `g_bit_storage': gutils.c:(.text+0x70): multiple definition of `g_bit_storage' testglib.o:testglib.c:(.text+0x1a0): first defined here collect2: error: ld returned 1 exit status Makefile:456: recipe for target 'testglib' failed make[9]: *** [testglib] Error 1
07-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值