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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

Re: lug-bg: pngconf.h Error


  • Subject: Re: lug-bg: pngconf.h Error
  • From: George Danchev <danchev@xxxxxxxxx>
  • Date: Fri, 24 Oct 2003 23:21:05 +0300

On Friday 24 October 2003 22:27, Ясен Дърво wrote:
> Zdraveite grupa
>
> Opitvaiki se da kompiliram Idesk se nataknah na sledniq problem, koito
> pri prednoto kompilirane ( na sashtata mashina sys syshtite biblioteki i
> headers ) ne vyznikvashe. Chudq se dali az neshto sam omazal ili.. v
> smisal che pri sashtiq paket i sashtite usloviq na sredata kompilraciqta
> protichashe dobre i si polzvah programcheto .. eto i greshkata
>
>
>
> malwk-gad@darkstar:/opt/usr/src/idesk-0.3.5$ make
> g++ -g -O2 -c Desk.cc -o Desk.o
> In file included from /usr/include/png.h:332,
>                  from Desk.h:11,
>                  from Desk.cc:1:
> /usr/include/pngconf.h:255: syntax error before `.'
> /usr/include/pngconf.h:256: syntax error before `it'
> make: *** [Desk.o] Error 1
> ===================================================================
> eto go i asmiq file pngconf.h
>
> ........................................248
> #  ifdef __linux__
> #    ifdef _BSD_SOURCE
> #      define PNG_SAVE_BSD_SOURCE
> #      undef _BSD_SOURCE
> #    endif
> #    ifdef _SETJMP_H

sledvat symnitelnite 255 i 256 rows:

>       __png.h__ already includes setjmp.h;
>       __dont__ include it again.;

hmm, mnogo interesno... taka kato gledam gornite dva reda nqmat nisto obsto s 
kojto i da bilo programen ezik... tova si e 4ist komentar spored men, taka 4e 
komentiraj gi (ako pro4etesh komentara predi tozi block code, ste vidish 4e 
celiq block e izlishen i za komentvane;-)... Ot koq versiq na bibliotekata e 
tozi pngconf.h, vizh kak e v prednata. Tova e mnogo symnitelno kato code, 
samo 'include' e klu4ova duma v tiq dva reda ;-)

> #    endif
> #  endif /* __linux__ */
>
>    /* include setjmp.h for error handling */
> #  include <setjmp.h>

ej gledaj go kakvo pravi ... nested incluces za da ti izkara syobstenie s  
gornata divota s dvata reda e 4e Desk.h ili Desk.cc ili /usr/include/
pngconf.h 4eve vklu4vat setjmp.h... tozi red #  include <setjmp.h> napravo go 
komentiraj v edin ot gornite Desk.* files ot source-a na idesk. Az ne sym go 
gledal sega de, no tova e naj-veroqtnata pri4ina kato gledam.

> ........................................262
>
> opitah da izteglq i instalirah nanovo libpng v koito paket se sadarja
> pngconf.h no ne pomogna - vse sashtata greshka. Vwzmojno e i greshkata
> izobshto da ne e tam no ne razbiram chak tolkova. nqkoi moje li da mi
> pomogne?
> shte sam bezkraino blagodaren

Ina4e bih se usymnil vyv versiqta na kompila (g++), t.e. 4e noviq kompil 
zasi4a syntax error v code-to, koqto starata versiq na kompila prostava, no 
ne tova e case tuka... maj developers na libpng se opitvat da debug-vat 
software-tata koito go vklu4vat i link-vat po dosta stranen na4in i 4uvstvo 
za humor;-) 

-- 
pub  4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB 

============================================================================
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.