in reply to Redirecting swig output

guess i need to use -o option

Seems likely. In swig -help I found:
-o <outfile> - Set name of the output file to <outfile>
So I think something like the following should work:
swig -c++ perl5 -o /full/path_to/abc_interface_wrap.cxx abc_interface.i

It might be that the output filename really does need to be placed inside angle brackets as shown. I don't know.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Redirecting swig output
by zeni (Beadle) on Feb 19, 2010 at 07:25 UTC

    I tried this.

    It says

    swig -c++ -perl5 -o obj/vip2vera_interface vip2vera_interface.i No module name specified using %module or -module.
    Also tried inserting between < > . It didnt work either!
      It didnt work either!

      Sorry - I know buggerall (less, in fact) about swig. (Surely there's a swig help list out there ?)
      Seems like it wants you to specify a module name, so try that and see what happens:

      swig -c++ -perl5 -module MyMod -o obj/vip2vera_interface vip2vera_interface.i

      Cheers,
      Rob
        It worked!!! Thanks Rob