Using DEV-C++ I can run the code with no problems, with Inline::C I get the same error
I think the DEV-C++ success demonstrates that mingw ports of gcc are capable of providing what's needed - since DEV-C++ uses such a port of gcc.
Inline::C and Inline::CPP provide a Config option (CC => 'C:/other/compiler.exe') that enables the use of a specific compiler. You could try specifying the DEV-C++ compiler as the one to use, and see how that goes.
Though, for that to work, you might also have to import more of the DEV-C++ environment into the environment under which you're running perl.
YMMV.
You could also look at building your own perl with your MSVC compiler. I think (untested by me) that's still a fairly simple procedure:
1) Download and unpack the perl source.
2) Open a 'cmd.exe' shell and set up your MSVC environment. (This used to mean running vcvars32.bat ... dunno if that's still appropriate for your case.)
3) 'cd' to the win32 folder of the perl source.
4) Configure the "Makefile" file as appropriate. (Just follow the documentation that's in the "Makefile" file.)
5) Run 'nmake' then 'nmake test' then 'nmake install'.
6) Always run perl with your MSVC environment set.
I expect that would deliver what you want - but, as we've already seen, what I expect and what you will get are not necessarily the same.
Cheers,
Rob
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.