0
我想要编译libpcap的和静态的libssl(用-static)和链接给我拿这些错误:为什么我收到用gcc未定义引用错误 - 静态链接
more undefined references to `ASN1_const_check_infinite_end' follow myprogram line 0, external location: /lib64/libssl.a(ssl_asn1.o)
more undefined references to `BIO_test_flags' follow myprogram line 0, external location: /lib64/libssl.a(ssl_lib.o)
------------------------truncated for brevity----------------------------------
我使用Ubuntu 11.4 i686_64和libssl.a上的nm结果与BIO_test_flags进行比较,结果如下:U BIO_test_flags 这意味着此符号是未定义的符号,并且所有未定义符号处于相同状态。
我该如何解决这个链接问题? (欢迎任何想法或方法) [请注意,静态编译对我来说是必须的]
我认为这是Ubuntu 11.04和x86_64? – 2011-12-19 17:03:05
是Ubuntu 11.04和x86_64。 – user1106291 2011-12-19 17:06:48