MSVC++ link error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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

I have set the environment variable as specified for perl ( I am using
and Activestate perl, perl lib name is perl58.lib ). Even when build
failed the
example_wrap.c and files are generated.I wrote a small perl
script as specified
and tried to use file in it but i got error saying unable to
include package even when it was present in the same

Can any one help me and suggest the whole procedure of building and
running the swig on windows for perl.

my mail id is --


Re: MSVC++ link error

Quoted text here. Click to load it

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.

Quoted text here. Click to load it

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


Site Timeline