<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi guys,<div class=""><br class=""></div><div class="">I am a novice about openssl. I encounter linker error when I try to compile evp demos which locate openssl/demos/evp.</div><div class=""><br class=""></div><div class="">My computer info is: </div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span><span style="font-size: 14px;" class=""><font color="#0061ff" class="">Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; root:xnu-2782.30.5~1/RELEASE_X86_64</font></span></div><div class=""><br class=""></div><div class="">And I use both gcc and clang with command “<span style="font-size: 14px;" class=""><font color="#0061ff" class="">cc -g -Wall -I../../include -lcrypto aesgcm.c</font></span>" to compile the source code.</div><div class=""><br class=""></div><div class="">The error info shows:</div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span style="font-size: 14px;" class=""><font color="#0056d6" class="">Undefined symbols for architecture x86_64: </font></span></div><div class=""><span style="font-size: 14px;" class=""><font color="#0056d6" class=""><span class="Apple-tab-span" style="white-space:pre">          </span> "_EVP_aes_256_gcm", referenced from: </font></span></div><div class=""><span style="font-size: 14px;" class=""><font color="#0056d6" class=""><span class="Apple-tab-span" style="white-space:pre">                   </span> _aes_gcm_encrypt in aesgcm-093314.o </font></span></div><div class=""><span style="font-size: 14px;" class=""><font color="#0056d6" class=""><span class="Apple-tab-span" style="white-space:pre">                      </span>_aes_gcm_decrypt in aesgcm-093314.o </font></span></div><div class=""><span style="font-size: 14px;" class=""><font color="#0056d6" class=""><span class="Apple-tab-span" style="white-space:pre">    </span>ld: symbol(s) not found for architecture x86_64 </font></span></div><div class=""><span style="font-size: 14px;" class=""><font color="#0056d6" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>clang: error: linker command failed with exit code 1 (use -v to see invocation)</font></span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span></div><div class="">Please help me. I will be very appreciate. </div><div class=""><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div class="">Br, Great Soul</div><div class=""><a href="mailto:soul.great@me.com" class="">soul.great@me.com</a></div><div class=""><br class=""></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br class=""></div></body></html>