Hi monks, I installed Microsoft Visual Studio .NET. Now when I tried to compile my perl_inc.c program as in my earlier thread I still am getting some errors
E:\>cl.exe -DWIN32 -I"C:\Perl\lib\CORE" C:\Perl\lib\CORE\perl58.lib -o + perl_inc.exe perl_inc.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for +80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. perl_inc.c C:\Perl\lib\CORE\sys/types.h(20) : fatal error C1083: Cannot open incl +ude file:'_ansi.h': No such file or directory
Then I tried to compile a simple program hello.c
#include <stdio.h> int main() { printf("Hello World\n"); return 0; }
I got an error saying
E:\>cl.exe -DWIN32 -I"C:\Perl\lib\CORE" C:\Perl\lib\CORE\perl58.lib -o + hello.exe hello.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for +80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved. hello.c Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. /out:hello.exe /out:hello.exe C:\Perl\lib\CORE\perl58.lib hello.obj LINK : fatal error LNK1104: cannot open file "LIBC.lib"
But libc.lib is found in 'C:\Perl\lib\CORE' directory. I don't understand why I am getting these errors? I am fed up. Please help me.

In reply to cl.exe & _ansi.h by Nalina

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.