Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Nicolas Guzzo
RE: msvc++ [ reply ]  
2009-09-14 07:43
I've solved the link error. What I did was modify ruby's env.h to export ruby_frame

struct FRAME {
...
};
extern __declspec(dllimport) struct FRAME *ruby_frame;

now the linker finds _ruby_frame!!
my test program runs ok. I'm embedding ruby in my 3d modelling software. Thanks for making rice!!!

By: Nicolas Guzzo
msvc++ [ reply ]  
2009-09-14 05:25
Hi, I'm trying to build rice from svn on vc++ 2008 free with ruby 1.8.7 also built on vc2008 everything compiled fine and the satic lib is generated, but when I try to link it in a test program i get a link error

rice.lib(method_data.obj) : error LNK2001: unresolved external symbol _ruby_frame

this symbol is present in msvcr90-ruby18.dll and is defined in env.h included in env.hpp. Any ideas? Has anyone been able to build rice in vc++? I'm using it on linux without problems and with mingw too but I need it in vc++...

Thanks.
Nicolas Guzzo - from San Luis - Argentina.