problem in calling C function from perl file

Hi Guys,

I'm getting following error while running the perl program and calling C function from it. Would anyone please tell me what is the problem ?

Thanks,
Himanshu

------------------------

C:\MTF>perl C_func.pl

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib C:\Perl\lib\ExtUtils/xs
ubpp -typemap C:\Perl\lib\ExtUtils\typemap C_func_pl_d68b.xs > C_func_pl_d68b.x
sc && C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command -e mv
C_func_pl_d68b.xsc C_func_pl_d68b.c
cl -c -IC:/MTF -nologo -O1 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRI
CT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_R
EADFIX -O1 -MD -Zi -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -IC:\P
erl\lib\CORE C_func_pl_d68b.c
C_func_pl_d68b.c
"Running Mkbootstrap for C_func_pl_d68b ()"
C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command -e
chmod 644 C_func_pl_d68b.bs
C:\Perl\bin\perl.exe "-IC:\Perl\lib" "-IC:\Perl\lib" -MExtUtils::Mksymli
sts -e "Mksymlists('NAME' => 'C_func_pl_d68b', 'DLBASE' => 'C_func_pl_d68b', 'D
L_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
link -out:blib\arch\auto\C_func_pl_d68b\C_func_pl_d68b.dll -dll -nologo
-nodefaultlib -debug -opt:ref,icf -libpath:"C:\Perl\lib\CORE" -machine:x86 C_f
unc_pl_d68b.obj C:\Perl\lib\CORE\perl56.lib oldnames.lib kernel32.lib user32.l
ib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleau
t32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32
.lib odbccp32.lib msvcrt.lib -def:C_func_pl_d68b.def
link: too many arguments
Try `link --help' for more information.
NMAKE : fatal error U1077: 'link' : return code '0x1'
Stop.

A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
nmake > out.make 2>&1

The build directory was:
C:\MTF\_Inline\build\C_func_pl_d68b

To debug the problem, cd to the build directory, and inspect the output files.

INIT failed--call queue aborted.
[2537 byte] By [Himanshu_shukla] at [2007-11-20 11:16:54]