MSVC++ link error
am 23.02.2006 09:55:48 von Nik
hi
i downloaded swig recently to interface perl with c. I was trying to
run thr example codes.
When i try to build he code i receive the
link error saying .
LINK : fatal error LNK1181: cannot open input file
"C:\Perl\lib\CORE\perl58.obj"
I have set the environment variable as specified for perl ( I am using
MSVC++
and Activestate perl, perl lib name is perl58.lib ). Even when build
failed the
example_wrap.c and example.pm files are generated.I wrote a small perl
script as specified
and tried to use example.pm file in it but i got error saying unable to
include example.pm package even when it was present in the same
directory.
Can any one help me and suggest the whole procedure of building and
running the swig on windows for perl.
my mail id is -- niketshrivastav@gmail.com
bye
niket
Re: MSVC++ link error
am 24.02.2006 08:19:04 von Sisyphus
"nik" wrote in message
> i downloaded swig recently to interface perl with c.
You could also use Inline::C (or XS) for that. I get the feeling that
Inline::C and XS are used more widely than swig - which means there's better
support available for them.
For Inline::C examples, see 'perldoc Inline::C-Cookbook' (after you've
installed the Inline::C module). For XS examples see 'perldoc perlxstut'.
Both Inline::C and XS are essentially the same. It's just that Inline::C
autogenerates the XS file for you, so you don't have to concern yourself
with how to write an XS file.
> I was trying to run thr example codes.
> When i try to build he code i receive the
> link error saying .
>
> LINK : fatal error LNK1181: cannot open input file
> "C:\Perl\lib\CORE\perl58.obj"
>
That file does not exist. My guess is that the "input file" it ought to be
trying to access is "C:\Perl\lib\CORE\perl58.lib", so you might want to try
and work out why it's getting the extension wrong.
Beyond that, I can't help - though there may be others here who can provide
better assistance. (I've used Inline::C with MSVC++, but I've never used
swig.)
Cheers,
Rob