Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: GCC again


  • Subject: Re: lug-bg: GCC again
  • From: nmitev@xxxxxx (Nikolay Mitev)
  • Date: Mon, 18 Feb 2002 14:37:40 +0200



On Sunday 17 February 2002 15:49, you wrote:
>     Zdraveite!

Hi,

>   Poneje naskoro stana duma za gcc i az da pitam neshto (makar che tova
> niama nishto obshto s predishnia vypros)
>   Da priemem, che po nezaviseshti ot men prichini gcc ne moje da izvika
> direktno 'as' i 'ld' i az ne moga da opravia pytia (tova ne e
> hipotetichna situacia, a realen problem). Az obache moga da gi izvikvam.
> Kakva e posledovatelnostta ot komandi, koiato shte napravi ot source -
> ELF. Tyrsi se variant rabotesht i za C++. Probvah slednoto neshto
>
> $ gcc -S test.cc
> $ as -o test.o test.s

Do tuk dobre.
> $ ld -o test /usr/lib/crt1.o test.o -lc  -lc -lstdc++-3-libc6.2-2-2.10.0

Tuk ve4e ima problem. Trqbvat ti dosta pove4e raboti. Vizh pri mene kak stava:

bash-2.05$ ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o 
/usr/lib/crti.o /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/crtbegin.o 
-L/usr/lib/gcc-lib/i386-slackware-linux/2.95.3 
-L/usr/i386-slackware-linux/lib test.o -lstdc++ -lm
-lgcc -lc /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/crtend.o 
/usr/lib/crtn.o -otest
bash-2.05$ ./test
TESTING WORKED

Kato suotvetno pri tebe trqbva da si opravi6 dirs.

HTH
Ako ima6 o6te problemi, mozhe6 da mi pi6e6 i na private da ne spamim lista.

> $ ./test
> bash: ./test: No such file or directory
>
> Tova sym go izprobal na Slackware 8 i RedHat 7.2 sys syotvetnite
> kompilatori - rezultatyt e vse syshtia. Sys sigurnost greshkata e neide v
> men, no kyde tochno e vyprosyt?
> Blagodaria predvaritelno
>   Ilia Trendafilov

Cheers,
face
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora


  • Относно:

 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.