I installed the pggw0999b-cygwin.exe into my
c:/cygwin/user/local
I copied the *.a files to the /usr/local/lib
(my cygwin didn't have a /usr/lib directory)
and the *.h files to the /usr/include

I added the following to the Cygwin.bat file...

SET PATH=C:\CYGWIN\BIN;C:\CYGWIN\USR\LOCAL\PGPLOT;C:\CYGWIN\GRWIN;%PATH%
SET PGPLOT_DIR=C:\CYGWIN\USR\LOCAL\PGPLOT

I am sorry but you will have to baby step me here
how do you add the -lGrWin switch


thanks Penny

Look this may be beyond me unless it is a relative simple fix.
Thanks again for looking at it. It is good to know that I did follow the instructions properly
and maybe there is a bigger problem


Finally got it working...

Thanks to help from Tsuguhiro TAMARIBUCHI the author of GrWin
Basically I got Cpan Pgplot module working with GrWin in Cygwin
by making the following changes to the perl Pgplot module Makefile
line 37
LDDLFLAGS = -s -L/usr/local/lib
change to
LDDLFLAGS = -s -L/usr/local/lib -Wl,--subsystem,console -mwindows
I was advised to to use the linker options. -Wl,--subsystem,console -lcpgplot -lpgplot -lGrWin -mwindows
or
-Wl,--subsystem,windows -lcpgplot -lpgplot -lGrWin -mwindows
depending on your application being a console application or a windows application.
in lines 277-279
I included the -lGrWin Libary
EXTRALIBS = -L/usr/local/pgplot -L/usr/local/pgplot -L/usr/local/lib -lcpgplot -lpgplot -lGrWin ......
LDLOADLIBS = -L/usr/local/pgplot -L/usr/local/pgplot -L/usr/local/lib -lcpgplot -lpgplot -lGrWin ......

In reply to Re^6: installing pgplot on cygwin by penny
in thread installing pgplot on cygwin by penny

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.