[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

BCC32 under win environment

Zach Dennis

11/13/2003 10:35:00 AM

Has anyone compiled ruby with bcc32 under a windows environment( preferably
win2000 ) successfully?

I'm having troubles.

Zach

-----Original Message-----
From: Ian Macdonald [mailto:ian@caliban.org]
Sent: Thursday, November 13, 2003 5:29 AM
To: ruby-talk ML
Subject: Re: problems with rb_str_split()


On Thu 13 Nov 2003 at 18:17:27 +0900, ts wrote:

> >>>>> "I" == Ian Macdonald <ian@caliban.org> writes:
>
> I> On Wed 12 Nov 2003 at 20:02:33 +0900, ts wrote:
>
> >> Well, I don't have this problem with 1.8.1
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I> Try running it with warnings enabled (-w):
>
> With -v warning are enabled
>
> I> [ianmacd@jiskefet]$ ruby -raa -wve 1
> I> ruby 1.8.0 (2003-08-04) [i686-linux-gnu]
>
> nasun% ruby -raa -wve 1
> ruby 1.8.1 (2003-10-31) [sparc-solaris2.8]
> ./aa.so: warning: found abc
> ./aa.so: warning: found def
> -e:1: warning: useless use of a literal in void context
> nasun%

So, it was just a bug in 1.8.0? Unfortunately, that's still the latest
official version, so I'm stuck with the issue at work for the time
being.

Thanks for your reply.

Ian
--
Ian Macdonald | Fifth Law of Procrastination:
System Administrator | Procrastination avoids boredom; one never
ian@caliban.org | has the feeling that there is nothing
http://www.c... | important to do.
|




1 Answer

Mark Smith

11/14/2003 1:49:00 PM

0

Zach Dennis wrote:

> Has anyone compiled ruby with bcc32 under a windows environment( preferably
> win2000 ) successfully?
>
> I'm having troubles.

Zach,

I compiled it with no trouble by following the steps in readme.bcc32 in
the bcc32 folder--both under Win2K and WinXP. Start a console. Be sure
you are in the "Ruby-1.8.1" directory. Then, set your path to include
both bin & the lib of bcc
(path=%path%;c:\borland\bcc55\bin;c:\borland\bcc55\bib) and just follow
the remaining steps.

It worked, and I was able to run basic Ruby programs successfully.
However, what keeps me using Andy's Win32 install is all the little
extras! Even though I can compile with bcc, I have no clue how to
compile all the great *.so file (like Oracle) that make Ruby such a
valuable tool for me.

Also, there's a unique item with bcc32. When you read a file, you must
be sure to include the binary flag "b" or you'll have trouble with
stripping characters--IIRC, lone CR's in mac files on my Win box.

(Now, if I only had a 4D plug-in to run Ruby in that environment!)

--
Regards,

Mark Smith
maslists [at] cox [dot] net