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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

Re: lug-bg: gcc - programirane pod Linux


  • Subject: Re: lug-bg: gcc - programirane pod Linux
  • From: mitko@xxxxxxx (Dimitar Peikov)
  • Date: Sat, 28 Dec 2002 12:27:49 +0200



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 28 December 2002 03:03, Ïëàìåí wrote:
> Zdrawejte
> Iskam da zapochna da programiram pod Linux. Napisal sam edna elementarna
> proramka na C, no neshto ne se poluchwa. Towa koeto prawia e slednoto gcc
> -c name.c
> gcc -o neshto name.o
> ./neshto
>

gcc -o name.o -c name.c
gcc -o name name.o

tova e ekvivalentno na ako njamash neshto koeto da se linkva v posledstvie (da 
ne stava dulug reda za compilirane) :

gcc -o name name.c

Ako iskash da si dobavish biblioteki (naprimer libXXX.so) reda stava neshto 
takova :

gcc -o name name.c -lXXX

Linker-a avtomatichno tarsi v put opisan v configuraciata na 'ld' 
(/etc/ld.so.conf) i v patishtata opisani v LD_LIBRARY_PATH.

Njakoi stari compilatori iziskvat bibliotekite da se ukazvat naj nakraja, sled 
kato sa parsnali vsichki object failove za da linknat bibliotekite pravilno, 
inache vrushtat greshka (pod Linux tova nadali shte te spoxodi, no e dobur 
stil da polzvash podoben syntax) Cheti vnimatelno MAN stranicite !!! Tam ima 
vsichko ot koeto se nuzdaesh, pone za sega ...

> taka li triabwa da bade ili ...
> Molia za primeri
> Ot man gcc nishto ne razbrah
>
> KDEDIR  i   QTDIR

Ako ne pishesh prilozenie koeto da polzva KDE/QT ne ti trjabvat !!! A po 
princip pogledni za KDevelop/Gideon, tam neshtata stavat avtomatichno i 
mislja che lesno shte se opravish.

> kakwi stoinosti da zadam? Polzwam RedHat8.0
>
>
>
> Blagodaria predwaritelno

Uspex

- -- 
Dimitar Peikov
Programmer Analyst
Globalization Group
"We Build e-Business"  

RILA Solutions  
27 Building, Acad.G.Bonchev Str.  
1113 Sofia, Bulgaria  

phone: (+359 2) 9797320 
phone: (+359 2) 9797300 
fax:   (+359 2) 9733355  
http://www.rila.com 

GnuPG key       http://earth.rila.bg/~mitko/mitko.key.asc
GnuPG key       http://www.bgzone.com/~mitko/mitko.key.asc
Key fingerprint 97AF 6192 78E2 AC68 FD56  CCB0 68B9 DF7D B3C1 9ED7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+DXymaLnffbPBntcRAvfTAKCk6hP9B1JUZujwIrLVN9xeJoVbXQCfSjgT
oSDeAeN9vWLFb1LhrcSDh6w=
=M+by
-----END PGP SIGNATURE-----
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

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

 

линукс за българи
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.