I think this is likely to be a bug with Inline/Apache. When you use Inline::C what happens under the covers the first time you run it is rather complicated. In a nutshell your code gets parsed, converted to XS/C and then that gets compiled. The generated XC/C is found in cwd/_Inline/build/script_name_xxxx/. The actual executable objects are found in cwd/_Inline/lib/script_name_xxxx/ where the xxxx is the same as the build name.

At runtime Inline looks to see if it needs to be compiled, and if so runs a compile then execute. If it has already been compiled it just executes.

I can see multiple issues. First if you have run it you should not need cl.exe as it has already been compiled. The fact that your browser can't find cl.exe but you obviously can (it runs from the command line) indicates you are running with different paths to the web server.

Anyway the server/perl should not need to compile this once it has been run off the command line once. If you look at the can't load statement you will see an issue with the path - it has \ and / path separators. As you checked to ensure sunucuya_yukle_cgi_485e.dll is there I wounder if a quick hack in Dynaloader to change the \ to / would fix it?

foreach (@INC) { s!\\!/!g; # apachify path Win32 my $dir = "$_/auto/$modpname"; # here is the \ / problem next unless -d $dir; # skip over uninteresting directories # check for common cases to avoid autoload of dl_findfile my $try = "$dir/$modfname.dll";

In reply to Re: Web Browser fails to compile my code by Anonymous Monk
in thread Web Browser fails to compile my code by aykun81

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.