gracias! ha sido leer la primera pagina del manual y ver la solucion, yo me
quejo de los usuarios y no me aplico la fantastica regla del RTFM,
Seguiré investigando :)
On 1/25/07, Paul Blackburn <[EMAIL PROTECTED]> wrote:
Sí. Sugiero leer el manual de PNGwriter, donde está especificado cómo
compilar, qué librerías necesitas (Freetype2 opcional, libpng, libz) y
ese tipo de detalles.
Te recomiendo leer los makefiles de los programas de ejemplo que trae
PNGwriter. Si lo instalaste vía un package manager y no encuentras los
programas de ejemplo, mejor baja PNGwriter directamente de
sf.net/projects/pngwriter, compílalo según las instrucciones, pero no
lo instales.
Suerte y cuéntanos cómo te va.
Paul
On 1/25/07, Guillem <[EMAIL PROTECTED]> wrote:
> Hola
> hoy he descubierto pngwriter y estoy intentado realizar algunas pruebas.
> Para hacer el Quickstart he copiado el contenido
>
> #include "pngwriter.h"
>
>
> int main()
> {
> int i;
> pngwriter png(300,300,0," test.png");
> for(i = 1; i < 300;i++)
> {
> png.plot(i,150+100*sin((double)i*9/300.0), 0.0,
> 0.0, 1.0);
> }
> png.close();
> return 0;
> }
>
> en el fichero prova.cpp y al hacer la compilacion obtengo:
>
> gcc prova.cpp
> prova.cpp: In function 'int main()':
> prova.cpp:10: warning: passing 'double' for argument 2 to 'void
> pngwriter::plot(int, int, double, double, double)'
> /tmp/cc8n6SgA.o: In function
> `__static_initialization_and_destruction_0(int, int)':
> prova.cpp:(.text+0x23): undefined reference to
`std::ios_base::Init::Init()'
> /tmp/cc8n6SgA.o: In function `__tcf_0':
> prova.cpp:(.text+0x6c): undefined reference to
> `std::ios_base::Init::~Init()'
> /tmp/cc8n6SgA.o: In function `main':
> prova.cpp:(.text+0xae): undefined reference to
`pngwriter::pngwriter(int,
> int, int, char const*)'
> prova.cpp:(.text+0xd2): undefined reference to `sin'
> prova.cpp:(.text+0x125): undefined reference to `pngwriter::plot(int,
int,
> double, double, double)'
> prova.cpp:(.text+0x13c): undefined reference to `pngwriter::close()'
> prova.cpp:(.text+0x14c): undefined reference to
`pngwriter::~pngwriter()'
> prova.cpp:(.text+0x162): undefined reference to
`pngwriter::~pngwriter()'
> /tmp/cc8n6SgA.o:(.eh_frame+0x12): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status
>
> alguien sabe a que es debido?
>
> --
> Guillem Mateu i Mascaró
> Ciutat de Mallorca
> http://enguillem.cat
> jabber: [EMAIL PROTECTED]
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> http://pngwriter.sourceforge.net/
> PNGwriter-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pngwriter-users
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users
--
Guillem Mateu i Mascaró
Ciutat de Mallorca
http://enguillem.cat
jabber: [EMAIL PROTECTED]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
http://pngwriter.sourceforge.net/
PNGwriter-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pngwriter-users