<?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=58&amp;t=21057&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-07-30T13:26:54+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=58&amp;t=21057&amp;mode</id>
<entry>
<author><name><![CDATA[dzajo16]]></name></author>
<updated>2018-07-30T13:26:54+01:00</updated>
<published>2018-07-30T13:26:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210268#p210268</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210268#p210268"/>
<title type="html"><![CDATA[Re: Multiple definition - pomimo jednej definicji zmiennych]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210268#p210268"><![CDATA[
Dziękuje bardzo za odpowiedzi  <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" />. Problemem był brak &quot;extern&quot; przy zmiennych. Doczytałem w BB  <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=9311">dzajo16</a> — 30 lip 2018, o 13:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Nefarious19]]></name></author>
<updated>2018-07-30T12:09:14+01:00</updated>
<published>2018-07-30T12:09:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210260#p210260</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210260#p210260"/>
<title type="html"><![CDATA[Re: Multiple definition - pomimo jednej definicji zmiennych]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210260#p210260"><![CDATA[
Wstaw w tagi SYNTAX.<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 3 minutach ]</span></strong><br /><br />A po drugie nikt tu nie ma szklanej kuli żeby bez kodu Ci coś doradzać. Na mój gust to powinieneś te zmienne ustawic w pliku C a w h wrzucic informację że takie zmienne istnieją i dać je jako exern jak je wykorzystujesz gdzie indziej. Bo jak robisz include plik.h to po prostu kompilator wkleja zawartosc pliku h w to miejsce. Więc jak używasz tego pliku w kilku miejscach to masz multiple definitions.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2500">Nefarious19</a> — 30 lip 2018, o 12:09</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dzajo16]]></name></author>
<updated>2018-07-30T11:18:56+01:00</updated>
<published>2018-07-30T11:18:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210257#p210257</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210257#p210257"/>
<title type="html"><![CDATA[Multiple definition - pomimo jednej definicji zmiennych]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21057&amp;p=210257#p210257"><![CDATA[
W konsoli mam takie info:<br />&quot;<br />make all <br />'Building file: ../Test_RS232/test_rs232.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega16 -DF_CPU=11059200UL -MMD -MP -MF&quot;Test_RS232/test_rs232.d&quot; -MT&quot;Test_RS232/test_rs232.o&quot; -c -o &quot;Test_RS232/test_rs232.o&quot; &quot;../Test_RS232/test_rs232.c&quot;<br />'Finished building: ../Test_RS232/test_rs232.c'<br />' '<br />'Building target: Test__FINALL__v2.elf'<br />'Invoking: AVR C Linker'<br />avr-gcc -Wl,-Map,Test__FINALL__v2.map -mmcu=atmega16 -o &quot;Test__FINALL__v2.elf&quot;  ./Test_RS232/test_rs232.o  ./PRZEKAZNIKI/przekazniki.o  ./POWTORZ_TEST/powtorz_test.o  ./PARSE_RS232/parse_rs232.o  ./MK_USART/mkuart.o  ./LED/led.o  ./LCD/lcd44780.o ./LCD/lcd_test.o  ./KLAWISZE/klawisze.o  ./DS18B20_4/test_ds18b20.o  ./DHT11/dht11.o  ./BUZZER/buzzer.o  ./1Wire/crc8.o ./1Wire/ds18x20.o ./1Wire/onewire.o  ./main.o   <br />./main.o:(.data.czy_wyslano_start+0x0): multiple definition of `czy_wyslano_start'<br />./Test_RS232/test_rs232.o:(.data.czy_wyslano_start+0x0): first defined here<br />./main.o:(.data.koniec_test_rs232+0x0): multiple definition of `koniec_test_rs232'<br />./Test_RS232/test_rs232.o:(.data.koniec_test_rs232+0x0): first defined here<br />./main.o:(.data.press+0x0): multiple definition of `press'<br />./Test_RS232/test_rs232.o:(.data.press+0x0): first defined here<br />collect2.exe: error: ld returned 1 exit status<br />make: *** [Test__FINALL__v2.elf] Błąd 1<br />&quot;<br /> Nie rozumiem dlaczego mam taki komunikat. Domyślam się że to możę by związane z czymś innym. Inicjalizacja wszystkich zmiennych o których mowa mam w jednym pliku &quot;Test_RS232/test_rs232.h&quot;. Jeśli ktoś wie jak mogę zobaczyć gdzie jest ta &quot;zdublowana definicja&quot; bardzo proszę o informację. Ewentualnie gdzie/jak szukać błędu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=9311">dzajo16</a> — 30 lip 2018, o 11:18</p><hr />
]]></content>
</entry>
</feed>