[LINUX:26951] Re: c programlarini derlemek?

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Ceyhun Kirmizitas (ceyhun@olympos.gen.tr)
Date: Sat 07 Apr 2001 - 19:45:01 EEST


slm...yine ben...
programi derlemek icin gcc yerine g++ i kullandigimda hic bi sorun
kalmadi....

acaba gcc de sadece standart (ansi) nin library lerimi var?
eger oyle ise standart ansi de sqrt yok mesela...

tesekkurler & iyi calismalar...

On Fri, 6 Apr 2001, Burak Demircan wrote:

> library path lerin dogru olduguna emin misin?
> yaptiginda bir hata yok cunku
>
> ----- Original Message -----
> From: "Ceyhun Kirmizitas" <ceyhun@olympos.gen.tr>
> To: "Multiple recipients of list LINUX" <linux@listweb.bilkent.edu.tr>
> Sent: Friday, April 06, 2001 7:55 PM
> Subject: [LINUX:26917] c programlarini derlemek?
>
>
> > Slm...Yazdigim c programlarinin bazilari linux de derlerken bazi hatalar
> > veriyor...ama baska bi yerde derledigimde ornegin turbo c hata falan
> > vermeden guzel guzel derliyor..
> >
> > Ornegin asagidaki basit bi programi bile gcc -o kok kok.c ile derlerken su
> > hatayi veriyor:
> >
> > ----------------------
> > /tmp/cc4KusQc.o: In function `main':
> > /tmp/cc4KusQc.o(.text+0x4e): undefined reference to `sqrt'
> > /tmp/cc4KusQc.o(.text+0x7d): undefined reference to `sqrt'
> > collect2: ld returned 1 exit status
> > --------------------------------------
> > programin kaynak kodu:
> >
> > #include <stdio.h> /* printf islevi icin */
> > #include <math.h> /* sqrt islevi icin */
> > main()
> > {
> > float a,b,c;
> > float x1,x2;
> > float d;
> >
> > a=1;
> > b=-3;
> > c=2;
> > d=b*b-(4*a*c);
> >
> > x1=(-b+sqrt(d))/(2*a);
> > x2=(-b-sqrt(d))/(2*a);
> > printf("kokler=%f,%f",x1,x2);
> > }
> >
> > ---------------------------
> > Ne yapmam gerekiyor?
> >
> >
> >
> > Listeden cikmak icin:
> > unsub linux
> > mesajini listeci@bilkent.edu.tr adresine gonderiniz.
> > Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
> > Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
> > Liste arsivinin adresi: http://listweb.bilkent.edu.tr/
> >
> >
>
>
>
> Listeden cikmak icin:
> unsub linux
> mesajini listeci@bilkent.edu.tr adresine gonderiniz.
> Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
> Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
> Liste arsivinin adresi: http://listweb.bilkent.edu.tr/
>

 
 Listeden cikmak icin:
          unsub linux
 mesajini listeci@bilkent.edu.tr adresine gonderiniz.
   Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
 Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
 Liste arsivinin adresi: http://listweb.bilkent.edu.tr/


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.