Problem using SWIG approach

S

Sandeep Kumar

Hi,

I am trying to get a perl wrapper around a library using SWIG, to
access it's functions via a perl script. While I give make command, I
get following error:

C:\Program Files\Microsoft Visual Studio\VC98\Include\malloc.h(108) :
error C205
9: syntax error : '('
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code
'0x2'
Stop.

What I am doing is:
1. Write example.i : wrapper script for SWIG. It includes .h having
prototypes for lib functions
2. Call SWIG to generate example_wrap.c and some other files
3. Write a Makefile.pl with content
use ExtUtils::MakeMaker;
WriteMakefile(
'NAME' => 'example', # Name of module
'ZIP' => 'C:\Program Files\7-Zip\7z.exe',
'OBJECT' => 'example_wrap.obj'
);
4. call perl with makefile.pl to generate makefile
5. call make to build the entire thing.

I wonder if you could suggest something for this

Thanks
Sandeep
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top