<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=46&amp;t=23720&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2021-04-12T19:00:43+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=46&amp;t=23720&amp;mode</id>
<entry>
<author><name><![CDATA[matej1410]]></name></author>
<updated>2021-04-12T19:00:43+01:00</updated>
<published>2021-04-12T19:00:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231955#p231955</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231955#p231955"/>
<title type="html"><![CDATA[Re: Własna biblioteka, wywołanie jednej funkcji z drugiej]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231955#p231955"><![CDATA[
Wszystko jest ok. To ja się pomyliłem (zaćmienie umysłu <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";-)" title="Puszcza oko" />). Funkcja dodaj się wywołuje z funkcji dzialanie()<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1912">matej1410</a> — 12 kwi 2021, o 19:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[micky]]></name></author>
<updated>2021-04-12T18:33:24+01:00</updated>
<published>2021-04-12T18:33:24+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231954#p231954</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231954#p231954"/>
<title type="html"><![CDATA[Re: Własna biblioteka, wywołanie jednej funkcji z drugiej]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231954#p231954"><![CDATA[
Próbowałeś w dodaj zamieścić jakieś działania?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1546">micky</a> — 12 kwi 2021, o 18:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[matej1410]]></name></author>
<updated>2021-04-12T18:24:24+01:00</updated>
<published>2021-04-12T18:24:24+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231953#p231953</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231953#p231953"/>
<title type="html"><![CDATA[Własna biblioteka, wywołanie jednej funkcji z drugiej]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=23720&amp;p=231953#p231953"><![CDATA[
Witam serdecznie.<br /><br />Programuję STM32F042 w Atolicu.<br />Proszę o podpowiedź.<br />Napisałem sobie bibliotekę zawierającą dwa pliki: <strong>funkcje.c</strong> oraz <strong>funkcje.h</strong><br /><br />w pliku <strong>funkcje.c</strong> mam dwie funkcje:<br /><br />[syntax=c]void dodaj(uint8_t skladnik1, uint8_t skladnik2 ){}<br /><br /><br />void dzialanie()<br />{<br />dodaj(1,1);<br />}[/syntax]<br /><br />w pliku <strong>funkcje.h</strong>:<br />[syntax=c]void dzialanie(void);<br />void dodaj(uint8_t skladnik1, uint8_t skladnik2 );[/syntax]<br /><br /><br /><br /><br />I teraz tak:<br />w funkcji <strong>main</strong> wywołuje sobie funkcję<strong> dzialanie()</strong><br />[syntax=c]int main(void)<br />{<br />dzialanie();<br />}[/syntax]<br /><br />ale środowisko zwraca mi błąd:<br /><strong>undefined reference to 'dodaj'</strong><br />Jak spowodować, żeby jedna funkcja została wywołana poprawnie z drugiej?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1912">matej1410</a> — 12 kwi 2021, o 18:24</p><hr />
]]></content>
</entry>
</feed>