Hey!

Well, since this may be of more interest to more, I ask it here. What do I have to do minimum to get this start.c to compile properly? I've downloaded the source from Activestate and setup Dev-C++ to find the headers and libs. Now, when I compile I get this:
gcc.exe "C:\test\start.c" -o "C:\test\start.exe" -I"C:\Dev-Cpp\incl +ude" -I"C:\perl-5.8.8" -L"C:\Dev-Cpp\lib" -L"C:\perl-5.8.8\lib" In file included from C:\test\start.c:21: C:/perl-5.8.8/perl.h:37:23: config.h: No such file or directory In file included from C:\test\start.c:21: C:/perl-5.8.8/perl.h:1367: error: syntax error before "IV" C:/perl-5.8.8/perl.h:1367: warning: data definition has no type or sto +rage class C:/perl-5.8.8/perl.h:1368: error: syntax error before "UV" C:/perl-5.8.8/perl.h:1368: warning: data definition has no type or sto +rage class C:/perl-5.8.8/perl.h:1585: error: syntax error before "NV" C:/perl-5.8.8/perl.h:1585: warning: data definition has no type or sto +rage class C:/perl-5.8.8/perl.h:2065: error: syntax error before "STRLEN" C:/perl-5.8.8/perl.h:2065: warning: data definition has no type or sto +rage class In file included from C:/perl-5.8.8/perl.h:2120, from C:\test\start.c:21: C:/perl-5.8.8/handy.h:147: error: syntax error before "I8" C:/perl-5.8.8/handy.h:147: warning: data definition has no type or sto +rage class C:/perl-5.8.8/handy.h:148: error: syntax error before "U8" C:/perl-5.8.8/handy.h:148: warning: data definition has no type or sto +rage class C:/perl-5.8.8/handy.h:149: error: syntax error before "I16" C:/perl-5.8.8/handy.h:149: warning: data definition has no type or sto +rage class C:/perl-5.8.8/handy.h:150: error: syntax error before "U16" C:/perl-5.8.8/handy.h:150: warning: data definition has no type or sto +rage class C:/perl-5.8.8/handy.h:151: error: syntax error before "I32" C:/perl-5.8.8/handy.h:151: warning: data definition has no type or sto +rage class C:/perl-5.8.8/handy.h:152: error: syntax error before "U32" C:/perl-5.8.8/handy.h:152: warning: data definition has no type or sto +rage class C:/perl-5.8.8/handy.h:536: error: syntax error before "line_t" C:/perl-5.8.8/handy.h:536: warning: data definition has no type or sto +rage class C:/perl-5.8.8/perl.h:2435:21: win32.h: No such file or directory In file included from C:\test\start.c:21: C:/perl-5.8.8/perl.h:2695: error: syntax error before "I32" C:/perl-5.8.8/perl.h:2695: warning: no semicolon at end of struct or u +nion C:/perl-5.8.8/perl.h:2696: warning: data definition has no type or sto +rage class C:/perl-5.8.8/perl.h:2701: error: syntax error before '}' token C:/perl-5.8.8/perl.h:2710: error: syntax error before '*' token C:/perl-5.8.8/perl.h:2710: error: `I32' declared as function returning + a function C:/perl-5.8.8/perl.h:2710: error: 'I32' redeclared as different kind o +f symbol C:/perl-5.8.8/handy.h:151: error: previous declaration of 'I32' was he +re In file included from C:/perl-5.8.8/perl.h:2733, from C:\test\start.c:21: C:/perl-5.8.8/iperlsys.h:54: error: syntax error before '*' token C:/perl-5.8.8/iperlsys.h:54: error: `Signal_t' declared as function re +turning a function In file included from C:/perl-5.8.8/perl.h:2746, from C:\test\start.c:21: C:/perl-5.8.8/regexp.h:20: error: syntax error before "U8" C:/perl-5.8.8/regexp.h:20: warning: no semicolon at end of struct or u +nion C:/perl-5.8.8/regexp.h:21: warning: data definition has no type or sto +rage class C:/perl-5.8.8/regexp.h:22: error: syntax error before "next_off" C:/perl-5.8.8/regexp.h:22: warning: data definition has no type or sto +rage class .... And so forth...
I was hoping I wouldn't have to install M$ Visual Studio X. It seems that I have to do "configure" (to create the config.h file that is missing), but how to do this in windows? Would be damn cool if I could compile this start.c, since this little project seems really cool to me :) And besides, I need to add a pause in there to make it pause, and not close the terminal window when some tk script Im runing doesnt work. :) I get some error, but the window closes and I cant see the error. (Probably some module missing in this package that I use). Oh, and maybe somehow to get rid of the terminal window aswell when the tk script actually works!

But, I suppose the Perl interpreter is boundled into this start.c, and thus I need to be able to compile the whole Perl source aswell?

Thanks,
Ace

In reply to Re^3: problem with par as other user by Ace128
in thread problem with par as other user by Anonymous Monk

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.