Dear All:

I'm trying to install module MATH::GLPK::SOLVE by using the 'gcc' compiler along with 'dmake'utiliy and can't figure out how to fix dmake: Error code 129. It seems the 'link' command is not valid.

Please shed some light. I'm running Win7 with perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x64-multi-thread and I prefer to use gcc as opposed to Visual Studio 2008.

D:\installs\GLPK Linear Programming\Math-GLPK-Solve-0.07>dmake cp Solve.pm blib\lib\Math\GLPK\Solve.pm cp demo.pl blib\lib\Math\GLPK\demo.pl cp Solve.pod blib\lib\Math\GLPK\Solve.pod gcc -c -IC:/gnuwin32/src -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRIC +T -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE +-DPERL_IMPLICIT_CONTE XT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-strict-aliasin +g -mms-bitfields -O2 -DVERSION=\"0.07\" -DXS_VERSION=\"0.07 +\" "-IC:\Perl64\lib\ CORE" GLPK_wrap.c GLPK_wrap.c: In function 'SWIG_Perl_ConvertPtr': GLPK_wrap.c:710:15: warning: cast to pointer from integer of different + size [-Wint-to-pointer-cast] GLPK_wrap.c: In function 'SWIG_Perl_GetModule': GLPK_wrap.c:907:22: warning: cast to pointer from integer of different + size [-Wint-to-pointer-cast] GLPK_wrap.c: In function 'SWIG_Perl_SetModule': GLPK_wrap.c:920:3: warning: cast from pointer to integer of different +size [-Wpointer-to-int-cast] Running Mkbootstrap for Math::GLPK::Solve () C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Solve.bs C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Math::GLPK::Solve\", 'DLBASE' => 'Solve' +, 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' +=> []);" dlltool --def Solve.def --output-exp dll.exp link -o blib\arch\auto\Math\GLPK\Solve\Solve.dll -Wl,--base-file -Wl,d +ll.base -mdll -L"C:\Perl64\lib\CORE" GLPK_wrap.o C:\Perl64\lib\CORE +\perl514.lib C:\MinGW \lib\libkernel32.a C:\MinGW\lib\libuser32.a C:\MinGW\lib\libgdi32.a C: +\MinGW\lib\libwinspool.a C:\MinGW\lib\libcomdlg32.a C:\MinGW\lib\liba +dvapi32.a C:\MinGW\li b\libshell32.a C:\MinGW\lib\libole32.a C:\MinGW\lib\liboleaut32.a C:\M +inGW\lib\libnetapi32.a C:\MinGW\lib\libuuid.a C:\MinGW\lib\libws2_32. +a C:\MinGW\lib\libmpr .a C:\MinGW\lib\libwinmm.a C:\MinGW\lib\libversion.a C:\MinGW\lib\libo +dbc32.a C:\MinGW\lib\libodbccp32.a C:\MinGW\lib\libcomctl32.a C:\MinG +W\lib\libmsvcrt.a dll .exp 'link' is not recognized as an internal or external command, operable program or batch file. dmake: Error code 129, while making 'blib\arch\auto\Math\GLPK\Solve\S +olve.dll'

Thanks for your advise.


In reply to Can't install Perl module with dmake utility by mdluna

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.