khchen / wNim

Nim's Windows GUI Framework
MIT License
326 stars 17 forks source link

Got RangeDefeat in hello world #69

Closed codehz closed 4 years ago

codehz commented 4 years ago

image

code:

import wNim

# import submodules one by one can speed up compilation time
# import wNim/[wApp, wFrame, wPanel, wStaticText]

let app = App()
let frame = Frame(title="wNim Frame")
let panel = Panel(frame)
let label = StaticText(panel, label="Hello World")

label.center() # Center label window in parent's client area
frame.center() # Center frame window in screen
frame.show() # A frame is hidden on creation by default.

app.mainLoop()

command line

nimble build --cc:vcc --run --verbose
khchen commented 4 years ago

Cannot reproduce. Update Nim compiler and wNim and then try again?

codehz commented 4 years ago

Cannot reproduce. Update Nim compiler and wNim and then try again?

I have use the latest stable nim version...(and tried reinstall) and the builtin gcc cannot even compile it(provided by choosenim).. I have to use the vcc...

khchen commented 4 years ago

Please update wNim, too.

codehz commented 4 years ago

ok, seems no more error