Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Problem using SWIG approach

Reply
Thread Tools

Problem using SWIG approach

 
 
Sandeep Kumar
Guest
Posts: n/a
 
      04-14-2006
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(10 :
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using SWIG with perl None C++ 6 01-12-2007 05:54 AM
Problem using SWIG with perl None Perl Misc 0 01-11-2007 07:38 PM
after embedding and extending python (using swig) problem importing (non-core) modules stefan Python 3 12-08-2004 07:11 PM
sip problem (was: swig problem) Uwe Mayer Python 0 02-16-2004 05:05 PM
Problem using swig Alfonso Cepeda Caballos,,, Python 0 11-04-2003 03:47 PM



Advertisments