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