search for: to_ruby

Displaying 4 results from an estimated 4 matches for "to_ruby".

2012 Dec 10
2
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
...m C++ api. Consider a function: static Object llvm_Target_createMCAsmInfo(Object self, Object tripleName) { llvm::Target target = from_ruby<llvm::Target>(self); char const *triple = from_ruby<char const *>(tripleName); llvm::MCAsmInfo *MAI = target.createMCAsmInfo(triple); return to_ruby<llvm::MCAsmInfo>(*MAI); } The problem here, is it's ok to use llvm::MCAsmInfo objects, but as soon as I use it in the cast (e.g. to_ruby), I immediately get an undefined symbol __ZTIN4llvm9MCAsmInfoE. Similar symbols for other llvm classes are there in my library's .o file, this one...
2005 Dec 25
0
ruby install.rb setup failed
...min/system/fox/fox-1.4.26/include \ --with-fox-lib=/home/admin/system/fox/fox-1.4.26/src/.libs when I run ruby install.rb setup, I get: ------------------------------------ In file included from include/FXRbCommon.h:90, from core_wrap.cpp:586: include/FXRuby.h: In function `VALUE to_ruby(long unsigned int)'': include/FXRuby.h:197: error: redefinition of `VALUE to_ruby(long unsigned int)'' include/FXRuby.h:193: error: `VALUE to_ruby(FX::FXulong)'' previously defined here *** Error code 1 Stop in /home/admin/system/fxruby/FXRuby-1.4.3/ext/fox14. setup faile...
2007 Sep 27
14
Camping and ruby2ruby
...n of all three components causes the problem I added the following code. I relies on Markaby and ruby2ruby only and works fine (a.k.a. as expected). require "rubygems" require "ruby2ruby" require "markaby" def example(&block) $mab.pre( block.to_ruby.gsub(/^proc \{\n(.*)\n\}$/m, ''\1'')) end Markaby::Builder.set(:indent, 2) $mab = Markaby::Builder.new $mab.xhtml_strict do div.literate_markaby! do example do 1 + 1 == 2 end end end puts $mab.to_s When I wrap that up i...
2012 Dec 10
0
[LLVMdev] typeinfo for llvm::MCAsmInfo is missing
...Object llvm_Target_createMCAsmInfo(Object self, Object tripleName) > { > llvm::Target target = from_ruby<llvm::Target>(self); > char const *triple = from_ruby<char const *>(tripleName); > > llvm::MCAsmInfo *MAI = target.createMCAsmInfo(triple); > return to_ruby<llvm::MCAsmInfo>(*MAI); > } > > The problem here, is it's ok to use llvm::MCAsmInfo objects, but as soon as I use it in the cast (e.g. to_ruby), I immediately get an undefined symbol __ZTIN4llvm9MCAsmInfoE. Similar symbols for other llvm classes are there in my library's .o...