Writing a C extension
-
Hey all,
I am embarking on the dark road of C extensions and had a few questions in regard to how to go about writing one:
- Are there any good tutorials/blogs about how to write an extension. I've been looking but coming up empty handed. I'd love to find one that shows how to make a minimal extension on a Mac, if possible.
- How can I make a universal binary (e.g. one that will work on Mac and PC)? Is it possible? Any experience doing one?
- Has anyone had experience writing a C extension that downloads a file from a website to the local filesystem? If so, how did you go about doing it?
Any direction/tips/links on these issues would be greatly appreciated!
Cheers,
Dana -
Nobody have experience with this?
-
@ishboo said:
Nobody have experience with this?
We have discussed this in previous topics...
... we currently have an active topic going on C/C++ Plugins:
Plugin DLLOther threads on this issue:
Getting Started with C++ and Sketchup
Ruby extension module using C/C++ (mostly about using SWIG)
Example of Compiled Extension with SWIG and CMake
Ruby C++ extension crashes SketchUp
Re: Optimization Tips (discussing Ruby vs C speed)
Programming in C, C++ for Mac and Windows?
Are Swig generated Ruby bindings compatible with Sketchup?
Examples:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement