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.
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.
“Haris Bogdanoviæ” [email protected] wrote in message
news:[email protected]…
Hi.Line 2 produces an error:1 require “wx”
2 include Wxafter starting I get this:
uninitialized constant Wx (NameError)
from wx.rb:1:in `require’
from wx.rb:1Exit code: 1
Can you tell me why is this happening ?Thanks.
Why is my text all scrambled ? I use outlook express
Haris Bogdanoviæ wrote:
Hi.Line 2 produces an error:1 require “wx”
2 include Wxafter starting I get this:
uninitialized constant Wx (NameError)
from wx.rb:1:in `require’
from wx.rb:1Exit code: 1
Can you tell me why is this happening ?Thanks.
Any chance your test program is named wx.rb? If so, change it.
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 $:"
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æ” [email protected] wrote in message
news:[email protected]…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs