ruby-c-extension-examples
ruby-c-extension-examples copied to clipboard
Ruby C extension examples
I had the following warning at extension startup using ruby 3.2 + swig 4.0: `[path/to/*.so]: warning: undefining the allocator of T_DATA class swig_runtime_data` Found this fix that worked for me...
The swig binary stored at https://github.com/SketchUp/ruby-c-extension-examples/blob/main/ThirdParty/bin/win32/swig/swig.exe has version number 2.0 which is not C++17 compliant. SWIG documentation indicates that version 4.0 is required to produce C++17 code: https://www.swig.org/Doc4.1/CPlusPlus17.html#CPlusPlus17
Hi, The contact part of the developer site was giving me a 404 and I can't find anything on the docs nor in the examples in this repo to provide...
The naming `x64-msvcrt-rubyMm0` (major, minor) has been around for quite a while, and was based on publicly available Ruby builds. Ruby 3.1 is now publicly available only as an MSYS2...
I checked out dev/arm64 and tried to build the project and got this error ld: warning: ignoring file /Users/dalemartens/mind.sight.studios Dropbox/Dale Martens/Plugins/ruby-c-extension-examples/ThirdParty/lib/mac/2.7-universal/Ruby.framework/Ruby, building for macOS-x86_64 but attempting to link with file...
The Hello World is a silly and meaningless example. Add some examples with substance. Something that at least looks up some SketchUp model properties and displays them.
Either update the binaries or provide better details on how to consume. Ref: https://forums.sketchup.com/t/su2019-requires-multiple-binaries/169454/11