Then I tried to compile a simple program hello.cE:\>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
I got an error saying#include <stdio.h> int main() { printf("Hello World\n"); return 0; }
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.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"
In reply to cl.exe & _ansi.h by Nalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |