Nalina has asked for the wisdom of the Perl Monks concerning the following question:
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"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cl.exe & _ansi.h
by tachyon (Chancellor) on Aug 25, 2004 at 08:22 UTC | |
|
Re: cl.exe & _ansi.h
by Anonymous Monk on Aug 25, 2004 at 07:35 UTC | |
|
Re: cl.exe & _ansi.h
by Anonymous Monk on Aug 25, 2004 at 07:39 UTC | |
by swaroop.m (Monk) on Aug 25, 2004 at 07:44 UTC | |
by tbone1 (Monsignor) on Aug 25, 2004 at 13:01 UTC | |
|
Re: cl.exe & _ansi.h
by gellyfish (Monsignor) on Aug 25, 2004 at 09:49 UTC | |
by tachyon (Chancellor) on Aug 25, 2004 at 10:08 UTC | |
by gellyfish (Monsignor) on Aug 25, 2004 at 11:20 UTC |