Darkmonk has asked for the wisdom of the Perl Monks concerning the following question:

Seeking Compile wisdom on MS W2k. I am trying to compile Matt Hempel's perl binding for GDChart. But it would not compile. Sooo ...wondering if any one has done that before. Thanks

Replies are listed 'Best First'.
Re: GDChart - Compile issues in MS
by AcidHawk (Vicar) on Jul 23, 2003 at 07:05 UTC

    The only bit of advice I can give you without seeing any errors or knowing what your are using to compile, is make sure you have all the relevant use statements at the start of your code. the following is from the Perl2exe Manpage...

    8. "Can't locate somemodule.pm in @INC at myscript.pl line 1" error message

    If you get an error message like the one above, you can force the missing module to be compiled into the exe by adding a line like one of the following to your script:

    use somemodule;

    Or if the message is "Can't locate Foo/Bar.pm in ...":

    use Foo::Bar;

    This is what catches me most times..;)

    -----
    Of all the things I've lost in my life, its my mind I miss the most.
Re: GDChart - Compile issues in MS
by Darkmonk (Initiate) on Jul 23, 2003 at 13:05 UTC
    My apologies. I should have phrased the question better. (Perhaps too much meditation led me to believe in "mind transfer"...;) ) Matt H himself is not supporting the MS platform for his perl bindings. I was trying to compile it in W2k using nmake utility. I get the following error >>>>>>>>>>>>>>> ERROR MESSAGE >>>>>>>>>>>>>>>>>>>>>>>>>>>>. CPAN_Module\gdchart-perl-1.0>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -c -Igdchart0.94b -Igdchart0.94b/gd1.3 -nologo -O1 -MD -Zi -DNDEBUG - DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_I MPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD -Zi -DNDEBUG -DVERSION=\"1.0\" -DX S_VERSION=\"1.0\" -IC:\Perl\lib\CORE gdchart_wrap.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x1' Stop. >>>>>>>>>>>>>>>>>>>> END ERROR >>>>>>>>>>>>>>>>>>>>>>>>>>>>> So let me try again. My question is someone out there who has managed to compile the GDChart on W2K. If not, is there a way to create "exploding pie chart " in perl using any other plotting methods..? Thanks _DMonk_
Re: GDChart - Compile issues in MS
by naChoZ (Curate) on Jul 22, 2003 at 23:41 UTC
    How about an error message? something?

    ~~
    naChoZ