[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Embedding Ruby in C

Zach Dennis

12/2/2003 4:26:00 AM

Thanks for replying Ron. I have recently made the move from scripting
languages to real languages and I'm quite new to compiling.

Zach

-----Original Message-----
From: Ron Coutts [mailto:rcoutts@envistatech.com]
Sent: Monday, December 01, 2003 11:23 PM
To: ruby-talk ML
Subject: Re: Embedding Ruby in C


> Here is what i get:
>
> Compiling...
> out.c
> Linking...
> 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
> Debug/out.exe : fatal error LNK1120: 3 unresolved externals
> Error executing link.exe.
>
> out.exe - 4 error(s), 0 warning(s)
>
> Any ideas? Thanks,

Isn't this just a C linker error? I've never embedded ruby myself, but
it seems there's a missing lib file containing the object code for
functions ruby_init, ruby_finalize and rb_eval_string.

Ron