Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[ANN] rb++ / rbgccxml 0.9.1
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Thorsten Hater, post: 4655095"] Hi, I seem to have something like a bug in rb++. For the case that I want to wrap a simple method the extension doesn't compile because of multiple definitions. The issue is somewhat tricky since when I have a previously compiled extension and merely extend the header file, it compiles fine. Here test case: wrapper.rb require 'rubygems' require 'rbplusplus' include RbPlusPlus Extension.new "test" do |ext| ext.sources ["/home/thor/rb++/test.hpp"] ext.module "Test" do |mod| node = mod.namespace "T" end end test.hpp #ifndef TEST #define TEST #include <iostream> namespace T { void test() { std::cout << "i'm just sitting here" << std::endl; } } #endif The error is encountered also if I have a class before the function test. Thorsten [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] rb++ / rbgccxml 0.9.1
Top