From: Eric Sunshine Date: 2003-12-02T14:10:10+09:00 Subject: Re: Embedding Ruby in C On Tue, 2 Dec 2003 13:15:23 +0900, Zach Dennis wrote: > out.obj : error LNK2001: unresolved external symbol _ruby_init > out.obj : error LNK2001: unresolved external symbol _ruby_finalize > out.obj : error LNK2001: unresolved external symbol _rb_eval_string Assuming that you are correctly linking against the ruby library, you also need to ensure that the RUBY_EXTERN macro (1.8.x) is defined properly (or the EXTERN macro for ruby 1.6.x). Look inside Ruby's define.h file to see if this macro is being defined properly for your situation. If it is not, then you may have to ensure manually that it is defined in an appropriate manner. For instance, you are using Windows, so: #define RUBY_EXTERN extern __declspec(dllimport) #include -- ES