khchen / wNim

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

cannot bind another '=destroy' to: wPaintDC #44

Closed retsyo closed 4 years ago

retsyo commented 4 years ago

I am using latest-cloned-built nim on win7 64 bits in MSYS2/MingW64

USER@USER-PC MINGW64 ~
$ nim
Nim Compiler Version 1.1.1 [Windows: amd64]
Compiled at 2020-02-23
Copyright (c) 2006-2019 by Andreas Rumpf

winim and wNim are new release

USER@USER-PC MINGW64 /r/examples
$ nimble uninstall wnim
    Looking for wnim (any version)
   Warning: No nimblemeta.json file found in C:\Users\USER\.nimble\pkgs\wxnim-0.8.0
     Error: Package not found

USER@USER-PC MINGW64 /r/examples
$ nimble uninstall wNim
    Looking for wNim (any version)
   Warning: No nimblemeta.json file found in C:\Users\USER\.nimble\pkgs\wxnim-0.8.0
     Error: Package not found

USER@USER-PC MINGW64 /r/examples
$ nimble install wNim
Downloading https://github.com/khchen/wNim using git
  Verifying dependencies for wnim@0.10.1
   Warning: No nimblemeta.json file found in C:\Users\USER\.nimble\pkgs\wxnim-0.8.0
 Installing winim@>= 3.2.4
Downloading https://github.com/khchen/winim using git
  Verifying dependencies for winim@3.3.0
 Installing winim@3.3.0
   Building winim/winim/winimx.exe using c backend
   Success: winim installed successfully.
 Installing wnim@0.10.1
   Success: wnim installed successfully.

however, no wNim example can be compiled

USER@USER-PC MINGW64 /r/wNim/examples
$ nim c -r demo.nim
......
Hint: wRegion [Processing]
C:\Users\USER\.nimble\pkgs\wnim-0.10.1\wNim\private\dc\wPaintDC.nim(66, 1) Error: cannot bind another '=destroy' to: wPaintDC; previous declaration was constructed here implicitly: C:\Users\USER\.nimble\pkgs\wnim-0.10.1\wNim\private\dc\wPaintDC.nim(50, 3)
khchen commented 4 years ago

Fixed.