Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

anybody familiar with SWIG?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Jan-31-06 05:54 AM
Original message
anybody familiar with SWIG?
(It's a great tool for making code bindings.)

How do you handle inline methods from C++ classes? I haven't got it to work yet.

Thanks.
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Feb-05-06 02:49 AM
Response to Original message
1. any SWIG gurus out there?
I'm trying to wrap the C++ version of ImageMagick in order to get Python bindings, but I'm having a heck of time figuring this out. It's not so much inline methods now that are giving me headaches now. ImageMagick uses multiple namespaces, and no matter what I do, I can't seem to merge them peacefully.

If I ever get it to work, I'll be glad to share. Hint, hint. ;)
Printer Friendly | Permalink | Reply | Top
 
qnr Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Feb-05-06 11:16 PM
Response to Reply #1
2. Can't help you - but good luck :) n/t
Printer Friendly | Permalink | Reply | Top
 
Syrinx Donating Member (1000+ posts) Send PM | Profile | Ignore Sun Feb-05-06 11:25 PM
Response to Reply #2
3. decided to go another route
I spent about a week trying to wrap the C++ without luck. Today I decided to try the C API instead. After just about an hour, I think I've got it licked already. I guess the problem with the C++ version was the tangled web of namespaces, and the resulting name-mangling. Unfortunately, the C API isn't real clear as compared to Magick++. But at least I've got it working... I think.

Looks like your wish of luck did the trick! :)
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Fri May 03rd 2024, 04:49 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Open Source and Free Software Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC