[linux-ileri] Re: Lineak'da Derleme Hatasi

---------

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

From: Murat Koç (murat.koc@frontsite.com.tr)
Date: Wed 14 Jul 2004 - 11:44:55 EEST


> Merhaba Arkadaslar,
>

Selam,

> Slackware 10 kullaniyorum. Sistemime Lineak'i kaynak kodundan derleyerek
> kurmak istedigimde bu hatayi aliyorum. Projenin yoneticisine konuyla
> ilgili hata mesajini da iceren bir mesaj attim ama cevap alamadim.
> (uzerinden 1-2 gun gecti) Aranizdan bu hatayi nasil giderecegim
> konusunda fikri olan varsa cok sevinirim.

> /usr/include/linux/byteorder/swab.h: In function `__u16 __fswab16(short
> unsigned int)':
> /usr/include/linux/byteorder/swab.h:135: error: ISO C++ forbids
> braced-groups
> within expressions

bu header ları update etmeniz gerekmekte. Nitekim bu şekilde tanımlanmıyorlar
uzun süredir.

/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H
-DCONFDIR=\"/usr/local/etc\"
-DPLUGINDIR=\"/usr/local/lib/lineakd/plugins\" -I. -I. -I..
-I../lineakd -I. -I.. -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall
-pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
^^^^^^^^^

Bir de Makefile içinden -pedantic i kaldırarak deneyin. Esas olarak error
vermesini sağlayan bu opsiyon çünkü. -pedantic tanımlı ise strict ISO C ve
C++ kullanımı istenir. Uymuyor ise bu şekilde hata verir.

Öncelikli olarak Makefile dan -pedantic i kaldırın derleyebileceksiniz.

Fakat header larınızı her şekilde update etmeniz gerekmekte.

-- 
 __________
|          |
|          |  Murat Koç
|          |  Manager & IT Consultant
|    FRONT |
|==========|  FrontSITE Bilgi Teknolojisi A.Ş.
|_____SITE_|  http://www.frontsite.com.tr/


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

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.