, gdyż bez niego avr-gcc nie widzi np pliku io.h. Jedynzmianą, jaką wykonałem było dodanie do zmiennej PATH ścieżki do avr-gcc. W czsie kompilacji mam błąd:
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
A sprawdz czy reczne linkowanie pomoze, tj. skompiluj do objecta (-c) i pozniej pojedz to linkerem recznie.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
Jeśli dobrze rozumiem, to o czym mówisz jest spełnione...
Zastanawiam się, czy jakieś operacji z ldconfig nie trzeba wykonać po zainstalowaniu biblioteki...
Jesli brakowaloby biblioteki, to by sie linker wywalil z okomunikatem, ze nie moze jej znalezc. Tutaj wyglada to tak jaby nie mogl znalezc ld. Chcialem abys zrobil ld recznie, zeby zobaczyc, czy czasem nie zadziala gdy podame sciezke absolutna.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
slomek pisze:A mógłbym prosić o sposób wywołania ld w tej sytuacji? Nigdy tego nie używałem a strona man wieje grozą
Mam to wywołać na pliku test.o?
Tak, jesli nie uzywasz ekstra bibliotek i nie sptripujesz, to wystarczy bezposrednie wykonanie ld na *.o.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
Co do drugiego pytania -> man cpp i sekcja ENVIRONMENT.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
slomek@frytka:~/AVRtest/pwm/test$ /usr/local/avr/bin/ld test.o
test.o: In function `main':
/home/slomek/AVRtest/pwm/test/test.c:7: undefined reference to `__stack'
/home/slomek/AVRtest/pwm/test/test.c:7: undefined reference to `__stack'
/home/slomek/AVRtest/pwm/test/test.c:37: undefined reference to `exit'
Może coś przy kompilacji biblioteki dałem ciała...?
Ostatnio zmieniony 2006-11-07, 08:48 przez slomek, łącznie zmieniany 2 razy.
Ostatnio zmieniony 2006-11-07, 08:59 przez difrost, łącznie zmieniany 1 raz.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
slomek@frytka:~/AVRtest/pwm/test$ /usr/local/avr/bin/gcc -c test.c -mmcu=atmega16
slomek@frytka:~/AVRtest/pwm/test$ /usr/local/avr/bin/gcc -o test test.o
/usr/local/avr/lib/gcc/avr/3.4.6/../../../../avr/bin/ld: crts8515.o: No such file: No such file or directory
Czyli jednak nie moze po prostu znalezc tzw. prekompilowanego start objecta. W normalnym gcc plik ten nazywa sie crtn.o i znajduje sie w /usr/lib (Debian). Postaraj sie go zlokalizowac recznie:
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
Ruszyło
Przekompilowałem bibliotekę wg podanego przez Ciebie linka- zmieniając oczywiście katalog docelowy. Wcześniej próbowałem kompilować wg artykułu, bodajże 351 z tej stronki, ale z avr-libc był problem (tam jest ./doinst.sh a nowsze wersje korzystają z ./configure...) i Skompilowałem ją wg wzorca proponowanego przez skrypty konfiguracyjne.
Wielkie dzięki!!