Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=5099583
By: kl31n

I'm having some strange problems with plotutils. I'm using eclipse 4.0 + mingw
c++ 3.4.5 + libplotter from plotutils 2.4.1. Everything compiles and links
(statically) ok, but the output of a GIFPlotter is wrong(that's to say the file
can't be visualized). I tried to use a PNGPlotter with libpng 1.2.8 + zlib 1.2.3
(also statically linked), but no improvement. The same code works ok under Linux
with Plotutils 2.5.x both with a GIFPlotter and a PNGPlotter. SVGPlotter and
PSPlotter work ok both under Linux an Windows.

Apparently the genereated .gif and .png files are slightly shorter than what
they are in the linux version, but I didn't do a binary diff yet. I tried to
add "plotter.flushpl();" but didn't help.

This is how the compiler is invoked:

g++ -IC:\Program Files\GnuWin32\include -O0 -g3 -Wall -c -fmessage-length=0
-osrc\m2m.o ..\src\m2m.cpp

for the linker:

g++ -LC:\Program Files\GnuWin32\lib -Xlinker -static -om2m.exe src\m2m.o
src\colormap.o -lplotter

The code I can replicate the problem with is the most basic one can think of
and can be found below. I would really appreciate some help on this because
I would like to stop using a linux virtual machine on a system that works poorly
already(but on which I can't really change much due to company cr...ehm,
policies).

Thanks for your attention,

kl31n

//BEGIN CODE---file: m2m.cpp

#define X_DISPLAY_MISSING
#include <plotter.h>
#include <fstream>

int main() {

        std::ofstream output("c:\\test.gif");
        Plotter::parampl("BITMAPSIZE", (void*)"1000x1000");
        GIFPlotter plotter(std::cin, output, std::cerr);

        plotter.openpl();
        plotter.fspace (0.0, 0.0, 1000.0, 1000.0);
        plotter.flinewidth (0.25);
        plotter.pencolorname ("red");
        plotter.erase ();
        plotter.fmove (250.0, 250.0);
        plotter.fcont(750.0,750.0);
        plotter.closepl();

        return 0;
}

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to