Skip to content

Instantly share code, notes, and snippets.

@KuennekeS
Created May 1, 2014 15:01
Show Gist options
  • Save KuennekeS/91f3db86140a79bfdc2d to your computer and use it in GitHub Desktop.
Save KuennekeS/91f3db86140a79bfdc2d to your computer and use it in GitHub Desktop.
rb++ problem
#ifndef frontpanelDriver_DEF
#define frontpanelDriver_DEF
using namespace some::namespace;
class FrontPanelDriver
{
public:
FrontPanelDriver();
~FrontPanelDriver();
// lots of methods that that use objects from some::namespace
private:
//some stuff here
};
#endif
require 'rubygems'
require 'rbplusplus'
include RbPlusPlus
Extension.new "frontpanelDriver" do |f|
f.sources ["testing.h"],
:library_paths => ["../build/frontpanelDriver"],
:libraries => ["frontpaneldriver"],
:include_paths => ["/usr/local/share/gccxml-0.9/GCC/4.8", "/usr/local/include", "."]
f.namespace "test"
end
#ifndef testing_DEF
#define testing_DEF
// Things work fine until this include is added.
#include "frontpanelDriver.h"
namespace test
{
class testing
{
public:
testing();
~testing();
};
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment