Background: Macromedia have released a flashSDK which provides some C++ code and some binaries that allow you to convert Flash SWF files into HTML containing the text and links. I am making an XS wrapper using their C++ code so that you can easily do the conversion from within Perl with the plan of releasing it on CPAN.

Essentially the framework is very simple. They provide a Swf2HtmlConverterStdio class that has a ConvertSwf2Htm method which takes an input and output stream.

At the moment all I am trying to do is create/destroy the Class object. It all compiles fine on Linux with g++ but with cl.exe on Win32 it chokes on the line with a link error LNK2019: unresolved external symbol....

The XS I am using at the moment is stripped right down to just this:

#include "swf2html_stdio.h" #ifdef __cplusplus extern "C" { #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifdef __cplusplus } #endif MODULE = Flash PACKAGE = Flash Swf2HtmlConverterStdio * Swf2HtmlConverterStdio::new() void Swf2HtmlConverterStdio::DESTROY()

You can browse the code at: http://tachyon.perlmonk.org/Flash/ or download a tar.gz that contains the whole thing from http://tachyon.perlmonk.org/flash.tar.gz

The flashSDK is in ./inc along with its HTML README. The win32 issue is in WIN32_CHOKE.txt I don't do much C++ but assume it is something fairly simple that is not being included.

Any suggestions welcome.

cheers

tachyon


In reply to C++ and XS compile issues on Win32 by tachyon

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.