leona...@zylle:~$ ls /usr/lib/libX11*
/usr/lib/libX11-xcb.la*  /usr/lib/libX11-xcb.so.1@      /usr/lib/libX11.la*
/usr/lib/libX11.so.6@
/usr/lib/libX11-xcb.so@  /usr/lib/libX11-xcb.so.1.0.0*  /usr/lib/libX11.so@
/usr/lib/libX11.so.6.2.0*
leona...@zylle:~$

se a sua instalação for "full" ela vai estar aí.

e digo mais, essa sua linha de compilação não consta o -lX11; passou o -lm
mas não passou o -lX11.

a título de exemplo, dei um grep nos includes do X e me parece que essas
funções existem lá, veja um exemplo:

leona...@zylle:~$ grep "XDrawRectangle" /usr/include/X11/*
/usr/include/X11/Xlib.h:extern int XDrawRectangle(
/usr/include/X11/Xlib.h:extern int XDrawRectangles(
leona...@zylle:~$

tente linkar com ao X também e veja se funciona.

2009/5/2 Guilherme <[email protected]>

>
> Pessoal, por acaso a libX11 vem no slack 12.2??
>
> Eu procurei e não achei e tb não achei pacotes para download dela..
> Eu estou tentando compilar um programa que usa o pgplot e estou
> recebendo o seguinte erros e me parece que eu preciso dessa lib.


>
> r...@lap:/home/guilherme/Desktop# g77 -o teste pgplot_sample1.o
> -L/usr/local/pgplot/ -lcpgplot -lpgplot -L/usr/local/lib -lm
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFree'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XClearWindow'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XLookupString'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XCreateImage'
> /usr/local/pgplot//libpgplot.so: undefined reference to
> `XGetWindowProperty'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFreeColors'
> /usr/local/pgplot//libpgplot.so: undefined reference to
> `XCreateSimpleWindow'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XOpenDisplay'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XDrawPoint'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XCopyArea'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XDeleteProperty'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XDrawLine'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XCloseDisplay'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFillArc'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XGetErrorText'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XSetForeground'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFillRectangle'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFreeGC'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XDisplayName'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XDrawRectangle'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XNextEvent'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XResizeWindow'
> /usr/local/pgplot//libpgplot.so: undefined reference to
> `XSetWindowBackground'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XCreateGC'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XSelectInput'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFlush'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XSync'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XStoreColors'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XSendEvent'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XChangeGC'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XWarpPointer'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XPutImage'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XFillPolygon'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XDefineCursor'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XAllocColor'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XInternAtom'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XQueryPointer'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XGetVisualInfo'
> /usr/local/pgplot//libpgplot.so: undefined reference to
> `XVisualIDFromVisual'
> /usr/local/pgplot//libpgplot.so: undefined reference to
> `XGetWindowAttributes'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XCheckWindowEvent'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XSetErrorHandler'
> /usr/local/pgplot//libpgplot.so: undefined reference to `XMapRaised'
> /usr/local/pgplot//libpgplot.so: undefined reference to
> `XGetSelectionOwner'
> collect2: ld returned 1 exit status
>
>
> E esse é o código
>
> #include <stdio.h>
> #include <math.h>
> #include <cpgplot.h>
>
>
> int main()
> {
>   int i;
>   float xs[9], ys[9];
>   float xr[101], yr[101];
>
>   /* Compute numbers to be plotted. */
>
>   for (i=0; i<101; i++)
>  {
>     xr[i] = 0.1*i;
>     yr[i] = xr[i]*xr[i]*exp(-xr[i]);
>  }
>   for (i=0; i<9; i++) {
>     xs[i] = i+1;
>     ys[i] = xs[i]*xs[i]*exp(-xs[i]);
>   }
>
>   /* Open graphics device. */
>
>   if (cpgopen("?") < 1)
>
>     return 1;
>
>   /* Define coordinate range of graph (0 < x < 10, 0 < y < 0.65),
>      and draw axes. */
>
>   cpgenv(0., 10., 0., 0.65, 0, 0);
>
>   /* Label the axes (note use of \\u and \\d for raising exponent). */
>
>
>   cpglab("x", "y", "PGPLOT Graph: y = x\\u2\\dexp(-x)");
>
>   /*  Plot the line graph. */
>
>   cpgline(101, xr, yr);
>
>   /* Plot symbols at selected points. */
>
>
>   cpgpt(9, xs, ys, 10);
>
>   /* Close the graphics device */
>
>   cpgclos();
>   return 0;
> }
>
>
>
>
> Muito obrigado
>
> Tks!
>
> -------------------
>
> Guilherme Longo
> Dept. Eng. da Computação
> Unaerp
>
> Linux User - #484927
>
> *Before Asking
> http://www.istf.com.br/?page=perguntas
>
> !- I'd rather die on my feet than live on my knees -!
>
>
>
> Gabriel Prestes wrote:
> > Olha, eu fiz alteração no perfil e funcionou, ou seja, manteve o
> > perfil. Só não me lembro como exatamente, mas foi no gerenciamento de
> > perfis do Konsole.
> >
> > Att,
> > _________________________________________
> > Gabriel Prestes
> > _________________________________________
> >
> > "Direi do Senhor: Ele é o meu refúgio e a minha fortaleza, o meu Deus,
> > em quem confio. Não temerás os terrores da noite, nem a seta que voe
> > de dia,nem peste que anda na escuridão, nem mortandade que assole ao
> > meio-dia. Mil poderão cair ao teu lado, e dez mil à tua direita; mas
> > tu não serás atingido. Somente com os teus olhos contemplarás, e verás
> > a recompensa dos ímpios."
> >
> >
> >
> >
> >
> > > Date: Fri, 1 May 2009 10:05:47 -0700
> > > Subject: [slack-users] Re: KDE4 Slackware-current
> > > From: [email protected]
> > > To: [email protected]
> > >
> > >
> > > Outra dúvida sobre configuração.
> > >
> > > No Konsole, quando acesso eu mudo o profile para ficar com as "cores
> > > do linux" e peço para salvar a configuração, mas da mesma forma que o
> > > problema da resolução, preciso fazer isso toda vez que ligo o
> > > computador, pois ele volta para aquele esquema de cores claras, que eu
> > > odeio.
> > >
> > > Denovo, peço a ajuda de vocês.
> > >
> > > Abraços
> > >
> > > On 30 abr, 01:21, PEdroArthur_JEdi <[email protected]> wrote:
> > > > 2009/4/30 Gabriel Prestes <[email protected]>:
> > > >
> > > > > Tentei sua dica, fui em atalho de teclado, inseri como atalho
> > Meta+M e nada.
> > > >
> > > > Aqui testei e funcionou... O atalho foi meta+d
> > > >
> > > > --
> > > > PEdroArthur_JEdi
> > > >
> > > > Nunca acredite num sistema que você não conhece o código fonte!
> > > > Never trust a system you don't have sources for!
> > > >
> > > > "A unica condição na qual a inteligência, a dignidade e a felicidade
> > > > podem se desenvolver é na liberdade."
> > > >
> > > > -- Mikhail Bakunin
> > >
> > >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
GUS-BR - Grupo de Usuários de Slackware Brasil
http://www.slackwarebrasil.org/
http://groups.google.com/group/slack-users-br

Antes de perguntar:
http://www.istf.com.br/perguntas/

Para sair da lista envie um e-mail para:
[email protected]
-~----------~----~----~----~------~----~------~--~---

Responder a