Hey, thanks for the responses.

I went into Makefile.PL and manually edited the JS_INC and JS_LIB keys in the %ENV hash to the correct folders. Also it was originally giving me "-ljs", and I changed that to "-ljs32" Now when I run Makefile.PL it returns this to the command prompt:

gcc -LC:\strawberry\js\src\WINNT5.1_OPT.OBJ -ljs32 -o C:\DOCUME~1\Steve\LOCALS~1\Temp\UCzBT5mwxB -IC:\strawberry\js\src test_js.c

jsapi.h and other .h files are located in C:\strawberry\js\src
js32.lib is located in C:\strawberry\js\src\WINNT5.1_OPT.OBJ

Now it seems to know where the files are, but it's giving me a looong list of errors and warnings. Too long to copy all of it on here but here's a sample

In file included from JavaScript_Env.h:17, from test_js.c:2: C:/strawberry/js/src/jsxml.h:59: error: field `declared' declared as a + function C:/strawberry/js/src/jsxml.h:110: error: `JSIdentityOp' declared as fu +nction returning a function C:/strawberry/js/src/jsxml.h:164: error: syntax error before "uint16" C:/strawberry/js/src/jsxml.h:164: warning: no semicolon at end of stru +ct or union C:/strawberry/js/src/jsxml.h:165: warning: data definition has no type + or storage class C:/strawberry/js/src/jsxml.h:178: error: conflicting types for 'u' C:/strawberry/js/src/jsfun.h:65: error: previous declaration of 'u' wa +s here C:/strawberry/js/src/jsxml.h:181: error: syntax error before '}' token C:/strawberry/js/src/jsxml.h:254: error: `js_GetFunctionNamespace' dec +lared as function returning a function C:/strawberry/js/src/jsxml.h:257: error: `js_GetDefaultXMLNamespace' d +eclared as function returning a function C:/strawberry/js/src/jsxml.h:260: error: `js_SetDefaultXMLNamespace' d +eclared as function returning a function C:/strawberry/js/src/jsxml.h:268: error: `js_IsXMLName' declared as fu +nction returning a function C:/strawberry/js/src/jsxml.h:271: error: `js_ToAttributeName' declared + as function returning a function C:/strawberry/js/src/jsxml.h:287: error: `js_GetAnyName' declared as f +unction returning a function C:/strawberry/js/src/jsxml.h:290: error: `js_FindXMLProperty' declared + as function returning a function C:/strawberry/js/src/jsxml.h:293: error: `js_GetXMLProperty' declared +as function returning a function C:/strawberry/js/src/jsxml.h:296: error: `js_GetXMLFunction' declared +as function returning a function C:/strawberry/js/src/jsxml.h:299: error: `js_SetXMLProperty' declared +as function returning a function C:/strawberry/js/src/jsxml.h:302: error: `js_GetXMLDescendants' declar +ed as func tion returning a function C:/strawberry/js/src/jsxml.h:305: error: `js_DeleteXMLListElements' de +clared as function returning a function C:/strawberry/js/src/jsxml.h:308: error: syntax error before "jsbyteco +de" C:/strawberry/js/src/jsxml.h:308: error: `js_FilterXMLList' declared a +s function returning a function C:/strawberry/js/src/jsopcode.h:239: warning: array 'js_EscapeMap' ass +umed to have one element

I think all the header files are causing errors.


In reply to Re^2: Installing Javascript.pm on XP by dogman1
in thread Installing Javascript.pm on XP by dogman1

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.