From: Haris Bogdanovi� on
Hi.Line 2 produces an error:1 require "wx"
2 include Wx

after starting I get this:

uninitialized constant Wx (NameError)
from wx.rb:1:in `require'
from wx.rb:1
>Exit code: 1
Can you tell me why is this happening ?Thanks.


From: Haris Bogdanovi� on

"Haris Bogdanovi�" <fbogdanovi(a)xnet.hr> wrote in message
news:h9352r$1fq$1(a)gregory.bnet.hr...
> Hi.Line 2 produces an error:1 require "wx"
> 2 include Wx
>
> after starting I get this:
>
> uninitialized constant Wx (NameError)
> from wx.rb:1:in `require'
> from wx.rb:1
>>Exit code: 1
> Can you tell me why is this happening ?Thanks.

Why is my text all scrambled ? I use outlook express
>
>


From: Tim Hunter on
Haris Bogdanovi� wrote:
> Hi.Line 2 produces an error:1 require "wx"
> 2 include Wx
>
> after starting I get this:
>
> uninitialized constant Wx (NameError)
> from wx.rb:1:in `require'
> from wx.rb:1
>> Exit code: 1
> Can you tell me why is this happening ?Thanks.

Any chance your test program is named wx.rb? If so, change it.

--
MagickWand for Ruby - http://magickwand.rubyforge.org/

From: Haris Bogdanovi� on
I named my file wx.rb.
That was the cause.
Can anybody explain why ?
Doesn't really matter know but I would like to know anyway.

Thanks.


"Haris Bogdanovi�" <fbogdanovi(a)xnet.hr> wrote in message
news:h9352r$1fq$1(a)gregory.bnet.hr...
> Hi.Line 2 produces an error:1 require "wx"
> 2 include Wx
>
> after starting I get this:
>
> uninitialized constant Wx (NameError)
> from wx.rb:1:in `require'
> from wx.rb:1
>>Exit code: 1
> Can you tell me why is this happening ?Thanks.
>


From: Tim Hunter on
Haris Bogdanovi� wrote:
> I named my file wx.rb.
> That was the cause.
> Can anybody explain why ?
> Doesn't really matter know but I would like to know anyway.
>

Because Ruby looks in your current directory for files that you require,
so when you required 'wx' it found your test file. You can find out what
directories Ruby searches by running this command:

ruby -e"puts $:"

--
MagickWand for Ruby - http://magickwand.rubyforge.org/