<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — 'undefined reference']]></title>
		<link>https://www.wolfssl.com/forums/topic1933-undefined-reference.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1933.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in 'undefined reference'.]]></description>
		<lastBuildDate>Thu, 24 Nov 2022 00:48:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: 'undefined reference']]></title>
			<link>https://www.wolfssl.com/forums/post6824.html#p6824</link>
			<description><![CDATA[<p>It works now.</p><p>I had not specified the library as -lwolfssl while compiling my code using gcc!</p>]]></description>
			<author><![CDATA[null@example.com (swaroopk)]]></author>
			<pubDate>Thu, 24 Nov 2022 00:48:46 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6824.html#p6824</guid>
		</item>
		<item>
			<title><![CDATA[Re: 'undefined reference']]></title>
			<link>https://www.wolfssl.com/forums/post6821.html#p6821</link>
			<description><![CDATA[<p>Hi kareem_wolfssl,</p><p>I have latest release from GitHub. I built it with default ./configure i.e. without any options.</p><p>I believe SHA is enabled, I see following configure status when I build:</p><p>&nbsp; &nbsp;* SHA:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes<br />&nbsp; &nbsp;* SHA-224:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes<br />&nbsp; &nbsp;* SHA-384:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes<br />&nbsp; &nbsp;* SHA-512:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes<br />&nbsp; &nbsp;* SHA3:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;yes</p>]]></description>
			<author><![CDATA[null@example.com (swaroopk)]]></author>
			<pubDate>Wed, 23 Nov 2022 00:10:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6821.html#p6821</guid>
		</item>
		<item>
			<title><![CDATA[Re: 'undefined reference']]></title>
			<link>https://www.wolfssl.com/forums/post6820.html#p6820</link>
			<description><![CDATA[<p>Hi swaroopk,</p><p>Did you install your distro&#039;s wolfSSL, or did you build it yourself?&nbsp; If you built it yourself, please attach your build settings (user_settings.h or ./configure line).<br />It looks like you&#039;re missing SHA support (ie. --disable-sha or NO_SHA), please confirm SHA is enabled.&nbsp; Please also confirm you&#039;re using the latest wolfSSL release, 5.5.3.</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Tue, 22 Nov 2022 20:53:10 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6820.html#p6820</guid>
		</item>
		<item>
			<title><![CDATA['undefined reference']]></title>
			<link>https://www.wolfssl.com/forums/post6819.html#p6819</link>
			<description><![CDATA[<p>Hi,</p><p> I have run into following error:<br />/tmp/ccrfx1RK.o: In function `main&#039;:<br />sha.c:(.text+0x3d): undefined reference to `wc_InitSha&#039;<br />sha.c:(.text+0x58): undefined reference to `wc_ShaUpdate&#039;<br />sha.c:(.text+0x6e): undefined reference to `wc_ShaFinal&#039;<br />collect2: error: ld returned 1 exit status</p><p>The code I am trying to compile is as follows:</p><p>#include &lt;wolfssl/options.h&gt;<br />#include &lt;wolfssl/wolfcrypt/settings.h&gt;<br />#include &lt;wolfssl/ssl.h&gt;<br />#include &lt;wolfssl/wolfcrypt/sha.h&gt;</p><p>int main()<br />{<br />&nbsp; int ret = 0;<br />&nbsp; char hash[20];</p><p>&nbsp; char string[8] = &quot;Test sha&quot;;</p><p>&nbsp; Sha sha[1];<br />&nbsp; wc_InitSha(sha);<br />&nbsp; wc_ShaUpdate(sha, string, 8);<br />&nbsp; wc_ShaFinal(sha, hash);</p><p>}</p><br /><p>I have installed wolfSSL per instruction for Linux and the tests ran fine.<br />I would appreciate any help to get over this blocker.</p>]]></description>
			<author><![CDATA[null@example.com (swaroopk)]]></author>
			<pubDate>Tue, 22 Nov 2022 20:28:48 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6819.html#p6819</guid>
		</item>
	</channel>
</rss>
