Coder Social home page Coder Social logo

neroist / uing Goto Github PK

View Code? Open in Web Editor NEW
151.0 8.0 4.0 2.22 MB

A fork of ui that wraps libui-ng instead of libui

Home Page: https://uing.nim.town

License: MIT License

C 39.74% Nim 60.26%
gui libui nim nim-lang ui wrapper libui-ng cross-platform linux windows

uing's Introduction

UIng

A fork of ui that wraps libui-ng instead of the old and unmaintained libui library. It also provides a high-level Nim binding for it.

To get started, install using Nimble:

nimble install uing

or add it to your project's Nimble file:

requires "uing"

Runtime Requirements

  • Windows: Windows Vista SP2 with Platform Update or newer
  • Unix: GTK+ 3.10 or newer
  • Mac OS X: OS X 10.8 or newer

Dependencies

  • gtk+-3.0

Linux: $ sudo apt-get install libgtk-3-dev

You should then be able to compile the sample code in the examples/ directory and run the tests successfully.

Static vs. dynamic linking

This library installs the C sources for libui-ng and statically compiles them into your application.

Static compilation is the default behaviour, but if you would prefer to depend on a DLL instead, pass -d:useLibUiDll to the Nim compiler. You will then need to bundle your application with a libui.dll, libui.dylib, or libui.so for Windows, macOS, and Linux respectively. Build instructions and requirements can be found in libui-ng's README

In addition, if you would rather want to compile with a static library, pass -d:useLibUiStaticLib to the Nim compiler instead. You will then need a libui.lib for Windows and a libui.a for other platforms. Again, Build instructions and requirements can be found in libui-ng's README

Static and dynamic libraries (e.g. libui.so, libui.lib) can be found in the releases page

Screenshots

Windows 11

controllgallery3_tab1.png controllgallery3_tab2.png controllgallery3_tab3.png

Linux (Zorin OS 16.4 Wayland)

controllgallery3_tab1.png controllgallery3_tab2.png controllgallery3_tab3.png

Mac OS X

Thank you @stoneface86 for the screenshots!

controllgallery3_tab1.png controllgallery3_tab3.png

More screenshots are available at screenshots/.

Stargazers over time

Stargazers over time

Made with ❤️ with Nim

uing's People

Contributors

capocasa avatar neroist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

uing's Issues

"pointer being freed was not allocated" error on Mac

Thank you for the wonderful library.

I ran the following code on my Mac:

import uing
import strutils

var mEntry: MultilineEntry

proc extraction(_: Button) =
  echo repr(mEntry.text)

proc main = 
  let window = newWindow("Hello World!", 800, 600)

  mEntry = newMultilineEntry()

  let button = newButton("test", extraction)

  let hbox = newHorizontalBox(true)
  hbox.add(mEntry, true)
  hbox.add(button)


  window.child = hbox
  show window
  mainLoop()

init()
main()

It is a small program with Entry and buttons.
This code gets the value from Entry when the button is pressed.
At that time, the value is retrieved without any problem on Windows, but on a Mac, a memory error occurs.

malloc: *** error for object 0x10ccaa058: pointer being freed was not allocated
malloc: *** set a breakpoint in malloc_error_break to debug
SIGABRT: Abnormal termination.

Is it possible for you to correct this?
Thank you.

  • MacOS 14.1.2(23B92)
    • Apple M1 Pro
    • 16 GB
  • Nim Compiler Version 2.0.2 [MacOSX: amd64]

(sometimes) Linking or runtime errors with gcc (and windows)

This is really weird since I haven't been having these issues before (e.g. when developing the library).

One of three things happen:

  1. Compilation and linking go through fine! But when the program tries to run it simply fails:

No other message is provided

Error: execution of an external program failed: examples\mac.exe
  1. Same thing as above, but the program complains of a missing DLL in a GUI message box

Seemingly, this only happens when C:\Program Files\LLVM\bin is in PATH, otherwise 1. or 3. happen.

image

  1. "multiple definition of..." linking errors
Hint:  [Link]
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios-inst.o):(.text$_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate[_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate]+0x0): multiple definition of `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005301.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios-inst.o):(.text$_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E[_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E]+0x0): multiple definition of `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005297.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios-inst.o):(.text$_ZNSt9basic_iosIwSt11char_traitsIwEE4initEPSt15basic_streambufIwS1_E[_ZNSt9basic_iosIwSt11char_traitsIwEE4initEPSt15basic_streambufIwS1_E]+0x0): multiple definition of `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::init(std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005319.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios.o):(.text$_ZNSt8ios_baseC2Ev+0x0): multiple definition of `std::ios_base::ios_base()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005205.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ios.o):(.text$_ZNSt8ios_baseD2Ev+0x0): multiple definition of `std::ios_base::~ios_base()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005208.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(sstream-inst.o):(.text$_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev[_ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev]+0x0): multiple definition of `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004950.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(sstream-inst.o):(.text$_ZNSt7__cxx1119basic_ostringstreamIwSt11char_traitsIwESaIwEED1Ev[_ZNSt7__cxx1119basic_ostringstreamIwSt11char_traitsIwESaIwEED1Ev]+0x0): multiple definition of `std::__cxx11::basic_ostringstream<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_ostringstream()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004969.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(string-inst.o):(.text$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_]+0x0): multiple definition of `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004484.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(string-inst.o):(.text$_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEyyPKcy[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEyyPKcy]+0x0): multiple definition of `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long long, unsigned long long, char const*, unsigned long long)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004386.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(wstring-inst.o):(.text$_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_assignERKS4_[_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_assignERKS4_]+0x0): multiple definition of `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004636.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(wstring-inst.o):(.text$_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_replaceEyyPKwy[_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE10_M_replaceEyyPKwy]+0x0): multiple definition of `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace(unsigned long long, unsigned long long, wchar_t const*, unsigned long long)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004538.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_aux_runtime.o):(.text.unlikely.__cxa_throw_bad_array_new_length+0x0): multiple definition of `__cxa_throw_bad_array_new_length'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006677.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_personality.o):(.text$__gxx_personality_seh0+0x0): multiple definition of `__gxx_personality_seh0'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006693.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_throw.o):(.text$__cxa_rethrow+0x0): multiple definition of `__cxa_rethrow'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006674.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(locale.o):(.text$_ZNSt6localeD2Ev+0x0): multiple definition of `std::locale::~locale()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004323.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(locale_init.o):(.text$_ZNSt6localeC2Ev+0x0): multiple definition of `std::locale::locale()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d004316.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(functexcept.o):(.text.unlikely._ZSt17__throw_bad_allocv+0x0): multiple definition of `std::__throw_bad_alloc()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005411.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(functexcept.o):(.text.unlikely._ZSt28__throw_bad_array_new_lengthv+0x0): multiple definition of `std::__throw_bad_array_new_length()'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005455.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(functexcept.o):(.text.unlikely._ZSt20__throw_length_errorPKc+0x0): multiple definition of `std::__throw_length_error(char const*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005435.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_x[_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_x]+0x0): multiple definition of `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long long)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d005402.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZNSo9_M_insertIPKvEERSoT_[_ZNSo9_M_insertIPKvEERSoT_]+0x0): multiple definition of `std::ostream& std::ostream::_M_insert<void const*>(void const*)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d001875.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi[_ZNSt13basic_ostreamIwSt11char_traitsIwEElsEi]+0x0): multiple definition of `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >::operator<<(int)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d002963.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(ostream-inst.o):(.text$_ZNSt13basic_ostreamIwSt11char_traitsIwEE9_M_insertIdEERS2_T_[_ZNSt13basic_ostreamIwSt11char_traitsIwEE9_M_insertIdEERS2_T_]+0x0): multiple definition of `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::basic_ostream<wchar_t, std::char_traits<wchar_t> >::_M_insert<double>(double)'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d002935.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_catch.o):(.text$__cxa_begin_catch+0x0): multiple definition of `__cxa_begin_catch'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006657.o):(.text+0x0): first defined here
c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib\libstdc++.a(eh_catch.o):(.text$__cxa_end_catch+0x0): multiple definition of `__cxa_end_catch'; c:/users/xx/.choosenim/toolchains/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../lib/libstdc++.dll.a(d006663.o):(.text+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
Error: execution of an external program failed: 'g++.exe   -o C:\Users\xx\OneDrive\Documents\uing\examples\mac.exe  C:\Users\xx\OneDrive\Documents\uing\res\winim64.res C:\Users\xx\OneDrive\Documents\uing\res\resources.o C:\Users\xx\nimcache\mac_r\common_areaevents.c.obj C:\Users\xx\nimcache\mac_r\common_attribute.c.obj C:\Users\xx\nimcache\mac_r\common_attrlist.c.obj C:\Users\xx\nimcache\mac_r\common_attrstr.c.obj C:\Users\xx\nimcache\mac_r\common_control.c.obj C:\Users\xx\nimcache\mac_r\common_debug.c.obj C:\Users\xx\nimcache\mac_r\common_matrix.c.obj C:\Users\xx\nimcache\mac_r\common_opentype.c.obj C:\Users\xx\nimcache\mac_r\common_shouldquit.c.obj C:\Users\xx\nimcache\mac_r\common_table.c.obj C:\Users\xx\nimcache\mac_r\common_tablemodel.c.obj C:\Users\xx\nimcache\mac_r\common_tablevalue.c.obj C:\Users\xx\nimcache\mac_r\common_userbugs.c.obj C:\Users\xx\nimcache\mac_r\common_utf.c.obj C:\Users\xx\nimcache\mac_r\win_alloc.cpp.obj C:\Users\xx\nimcache\mac_r\win_area.cpp.obj C:\Users\xx\nimcache\mac_r\win_areadraw.cpp.obj C:\Users\xx\nimcache\mac_r\win_areaevents.cpp.obj C:\Users\xx\nimcache\mac_r\win_areascroll.cpp.obj C:\Users\xx\nimcache\mac_r\win_areautil.cpp.obj C:\Users\xx\nimcache\mac_r\win_attrstr.cpp.obj C:\Users\xx\nimcache\mac_r\win_box.cpp.obj C:\Users\xx\nimcache\mac_r\win_button.cpp.obj C:\Users\xx\nimcache\mac_r\win_checkbox.cpp.obj C:\Users\xx\nimcache\mac_r\win_colorbutton.cpp.obj C:\Users\xx\nimcache\mac_r\win_colordialog.cpp.obj C:\Users\xx\nimcache\mac_r\win_combobox.cpp.obj C:\Users\xx\nimcache\mac_r\win_container.cpp.obj C:\Users\xx\nimcache\mac_r\win_control.cpp.obj C:\Users\xx\nimcache\mac_r\win_d2dscratch.cpp.obj C:\Users\xx\nimcache\mac_r\win_datetimepicker.cpp.obj C:\Users\xx\nimcache\mac_r\win_debug.cpp.obj C:\Users\xx\nimcache\mac_r\win_draw.cpp.obj C:\Users\xx\nimcache\mac_r\win_drawmatrix.cpp.obj C:\Users\xx\nimcache\mac_r\win_drawpath.cpp.obj C:\Users\xx\nimcache\mac_r\win_drawtext.cpp.obj C:\Users\xx\nimcache\mac_r\win_dwrite.cpp.obj C:\Users\xx\nimcache\mac_r\win_editablecombo.cpp.obj C:\Users\xx\nimcache\mac_r\win_entry.cpp.obj C:\Users\xx\nimcache\mac_r\win_events.cpp.obj C:\Users\xx\nimcache\mac_r\win_fontbutton.cpp.obj C:\Users\xx\nimcache\mac_r\win_fontdialog.cpp.obj C:\Users\xx\nimcache\mac_r\win_fontmatch.cpp.obj C:\Users\xx\nimcache\mac_r\win_form.cpp.obj C:\Users\xx\nimcache\mac_r\win_graphemes.cpp.obj C:\Users\xx\nimcache\mac_r\win_grid.cpp.obj C:\Users\xx\nimcache\mac_r\win_group.cpp.obj C:\Users\xx\nimcache\mac_r\win_image.cpp.obj C:\Users\xx\nimcache\mac_r\win_init.cpp.obj C:\Users\xx\nimcache\mac_r\win_label.cpp.obj C:\Users\xx\nimcache\mac_r\win_main.cpp.obj C:\Users\xx\nimcache\mac_r\win_menu.cpp.obj C:\Users\xx\nimcache\mac_r\win_multilineentry.cpp.obj C:\Users\xx\nimcache\mac_r\win_opentype.cpp.obj C:\Users\xx\nimcache\mac_r\win_parent.cpp.obj C:\Users\xx\nimcache\mac_r\win_progressbar.cpp.obj C:\Users\xx\nimcache\mac_r\win_radiobuttons.cpp.obj C:\Users\xx\nimcache\mac_r\win_separator.cpp.obj C:\Users\xx\nimcache\mac_r\win_sizing.cpp.obj C:\Users\xx\nimcache\mac_r\win_slider.cpp.obj C:\Users\xx\nimcache\mac_r\win_spinbox.cpp.obj C:\Users\xx\nimcache\mac_r\win_stddialogs.cpp.obj C:\Users\xx\nimcache\mac_r\win_tab.cpp.obj C:\Users\xx\nimcache\mac_r\win_table.cpp.obj C:\Users\xx\nimcache\mac_r\win_tabledispinfo.cpp.obj C:\Users\xx\nimcache\mac_r\win_tabledraw.cpp.obj C:\Users\xx\nimcache\mac_r\win_tableediting.cpp.obj C:\Users\xx\nimcache\mac_r\win_tablemetrics.cpp.obj C:\Users\xx\nimcache\mac_r\win_tabpage.cpp.obj C:\Users\xx\nimcache\mac_r\win_text.cpp.obj C:\Users\xx\nimcache\mac_r\win_utf16.cpp.obj C:\Users\xx\nimcache\mac_r\win_utilwin.cpp.obj C:\Users\xx\nimcache\mac_r\win_window.cpp.obj C:\Users\xx\nimcache\mac_r\win_winpublic.cpp.obj C:\Users\xx\nimcache\mac_r\win_winutil.cpp.obj C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@sstd@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@ssystem@srepr_v2.nim.c.o C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@m..@s..@s..@[email protected]@[email protected]@slib@[email protected] C:\Users\xx\nimcache\mac_r\@[email protected] C:\Users\xx\nimcache\mac_r\@mmac.nim.c.o  -lstdc++ -lwindowscodecs -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -ld2d1 -ldwrite -luxTheme -lusp10 -lgdi32 -luser32 -lkernel32   -Wl,-Bstatic -lpthread'

fix

{.passL: "-static".}
{.passL: "-static-libgcc".}
{.passL: "-static-libstdc++".}

Windows missing dlls when running very basic example.

libgcc_s_seh-1.dll was not found
libstdc++-6.dll was not found

my code looks like this

import uing

proc main =
  let window = newWindow("Window Title", 300, 30)

  show window
  mainLoop()

init()
main()

my nimble package

# Package

version       = "0.1.0"
author        = "Faisal Alghamdi"
description   = "POSman"
license       = "MIT"
srcDir        = "src"
bin           = @["posman"]


# Dependencies

requires "nim >= 2.0.2"
requires "uing"

Examples will not compile on windows.

C:\Users\faisal\Desktop\uing-main\examples>nim c controllgallery.nim
Hint: used config file 'C:\nim\nim-2.0.2\config\nim.cfg' [Conf]
Hint: used config file 'C:\nim\nim-2.0.2\config\config.nims' [Conf]
Hint: used config file 'C:\Users\faisal\Desktop\uing-main\examples\nim.cfg' [Conf]
.........................................................................
CC: ../../../../../nim/nim-2.0.2/lib/system/exceptions.nim
CC: ../../../../../nim/nim-2.0.2/lib/std/private/digitsutils.nim
CC: ../../../../../nim/nim-2.0.2/lib/system/dollars.nim
CC: ../../../../../nim/nim-2.0.2/lib/std/exitprocs.nim
CC: ../../../../../nim/nim-2.0.2/lib/std/syncio.nim
CC: ../../../../../nim/nim-2.0.2/lib/system.nim
CC: controllgallery.nim
Hint:  [Link]
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0xc): undefined reference to `uiControlDestroy'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2c): undefined reference to `uiControlDestroy'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x31): undefined reference to `uiQuit'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4e): undefined reference to `uiOpenFile'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6c): undefined reference to `uiMsgBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0xae): undefined reference to `uiSaveFile'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0xcc): undefined reference to `uiMsgBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x10e): undefined reference to `uiSliderValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x11f): undefined reference to `uiSpinboxSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x12e): undefined reference to `uiSliderSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x15e): undefined reference to `uiSpinboxValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x16f): undefined reference to `uiSpinboxSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x17e): undefined reference to `uiSliderSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x1c1): undefined reference to `uiSpinboxSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x1d0): undefined reference to `uiSliderSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x229): undefined reference to `uiInit'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x27e): undefined reference to `uiFreeInitError'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2af): undefined reference to `uiNewMenu'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2c1): undefined reference to `uiMenuAppendItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2d3): undefined reference to `uiMenuItemOnClicked'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2e2): undefined reference to `uiMenuAppendItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2f4): undefined reference to `uiMenuItemOnClicked'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x2fc): undefined reference to `uiMenuAppendQuitItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x30a): undefined reference to `uiOnShouldQuit'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x316): undefined reference to `uiNewMenu'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x328): undefined reference to `uiMenuAppendCheckItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x330): undefined reference to `uiMenuAppendSeparator'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x33f): undefined reference to `uiMenuAppendItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x347): undefined reference to `uiMenuItemDisable'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x34f): undefined reference to `uiMenuAppendPreferencesItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x357): undefined reference to `uiNewMenu'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x365): undefined reference to `uiMenuAppendItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x36d): undefined reference to `uiMenuAppendAboutItem'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x38a): undefined reference to `uiNewWindow'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x39e): undefined reference to `uiWindowSetMargined'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3b4): undefined reference to `uiWindowOnClosing'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3b9): undefined reference to `uiNewVerticalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3c9): undefined reference to `uiBoxSetPadded'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3d8): undefined reference to `uiWindowSetChild'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3dd): undefined reference to `uiNewHorizontalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3ed): undefined reference to `uiBoxSetPadded'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x3fe): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x40a): undefined reference to `uiNewGroup'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x41a): undefined reference to `uiGroupSetMargined'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x428): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x42d): undefined reference to `uiNewVerticalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x43d): undefined reference to `uiBoxSetPadded'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x448): undefined reference to `uiGroupSetChild'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x454): undefined reference to `uiNewButton'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x462): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x46e): undefined reference to `uiNewCheckbox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x47c): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x481): undefined reference to `uiNewEntry'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x493): undefined reference to `uiEntrySetText'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4a1): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4ad): undefined reference to `uiNewLabel'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4bb): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4c0): undefined reference to `uiNewHorizontalSeparator'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4ce): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4d3): undefined reference to `uiNewDatePicker'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4e1): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4e6): undefined reference to `uiNewTimePicker'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4f4): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x4f9): undefined reference to `uiNewDateTimePicker'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x507): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x50c): undefined reference to `uiNewFontButton'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x51a): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x51f): undefined reference to `uiNewColorButton'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x52d): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x532): undefined reference to `uiNewVerticalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x542): undefined reference to `uiBoxSetPadded'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x553): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x55f): undefined reference to `uiNewGroup'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x56f): undefined reference to `uiGroupSetMargined'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x57d): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x582): undefined reference to `uiNewVerticalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x592): undefined reference to `uiBoxSetPadded'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x59d): undefined reference to `uiGroupSetChild'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x5a9): undefined reference to `uiNewSpinbox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x5c2): undefined reference to `uiSpinboxOnChanged'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x5d4): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x5e0): undefined reference to `uiNewSlider'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x5f9): undefined reference to `uiSliderOnChanged'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x60b): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x610): undefined reference to `uiNewProgressBar'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x625): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x631): undefined reference to `uiNewGroup'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x641): undefined reference to `uiGroupSetMargined'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x64f): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x654): undefined reference to `uiNewVerticalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x664): undefined reference to `uiBoxSetPadded'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x66f): undefined reference to `uiGroupSetChild'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x674): undefined reference to `uiNewCombobox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x686): undefined reference to `uiComboboxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x695): undefined reference to `uiComboboxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6a4): undefined reference to `uiComboboxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6b2): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6b7): undefined reference to `uiNewEditableCombobox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6c9): undefined reference to `uiEditableComboboxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6d8): undefined reference to `uiEditableComboboxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6e7): undefined reference to `uiEditableComboboxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6f5): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x6fa): undefined reference to `uiNewRadioButtons'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x70c): undefined reference to `uiRadioButtonsAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x71b): undefined reference to `uiRadioButtonsAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x72a): undefined reference to `uiRadioButtonsAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x73b): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x740): undefined reference to `uiNewTab'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x748): undefined reference to `uiNewHorizontalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x75a): undefined reference to `uiTabAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x75f): undefined reference to `uiNewHorizontalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x771): undefined reference to `uiTabAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x776): undefined reference to `uiNewHorizontalBox'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x788): undefined reference to `uiTabAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x799): undefined reference to `uiBoxAppend'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x7a5): undefined reference to `uiControlShow'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x7aa): undefined reference to `uiMain'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x7af): undefined reference to `uiUninit'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x7a): undefined reference to `uiFreeText'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x9c): undefined reference to `uiMsgBoxError'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0xda): undefined reference to `uiFreeText'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0xfc): undefined reference to `uiMsgBoxError'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x143): undefined reference to `uiProgressBarSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x193): undefined reference to `uiProgressBarSetValue'
c:/nim/nim-2.0.2/dist/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o:@mcontrollgallery.nim.c:(.text+0x1e5): undefined reference to `uiProgressBarSetValue'
collect2.exe: error: ld returned 1 exit status
Error: execution of an external program failed: 'C:\nim\nim-2.0.2\dist\mingw64\bin\gcc.exe   -o C:\Users\faisal\Desktop\uing-main\examples\controllgallery.exe  C:\Users\faisal\Desktop\uing-main\res\winim64.res C:\Users\faisal\Desktop\uing-main\res\resources.o C:\Users\faisal\nimcache\controllgallery_r\@m..@s..@s..@s..@s..@[email protected]@slib@[email protected] C:\Users\faisal\nimcache\controllgallery_r\@m..@s..@s..@s..@s..@[email protected]@slib@sstd@[email protected] C:\Users\faisal\nimcache\controllgallery_r\@m..@s..@s..@s..@s..@[email protected]@slib@[email protected] C:\Users\faisal\nimcache\controllgallery_r\@m..@s..@s..@s..@s..@[email protected]@slib@[email protected] C:\Users\faisal\nimcache\controllgallery_r\@m..@s..@s..@s..@s..@[email protected]@slib@[email protected] C:\Users\faisal\nimcache\controllgallery_r\@m..@s..@s..@s..@s..@[email protected]@[email protected] C:\Users\faisal\nimcache\controllgallery_r\@mcontrollgallery.nim.c.o  -lstdc++ -static-libgcc -static-libstdc++ -static -lwindowscodecs -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -ld2d1 -ldwrite -luxTheme -lusp10 -lgdi32 -luser32 -lkernel32   -Wl,-Bstatic -lpthread'

Too many errors when compiling with clang and cpp

Example:

C:\Users\xx\OneDrive\Documents\uing\uing\libui\windows\drawtext.cpp:279:36: warning: exception specification of
      overriding function is more lax than base version [-Wmicrosoft-exception-spec]
  279 |         virtual HRESULT STDMETHODCALLTYPE GetCurrentTransform(void *clientDrawingContext, DWRITE_MATRIX *transform)
      |                                           ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um\dwrite.h:3607:15: note: overridden virtual function is
      here
 3607 |     STDMETHOD(GetCurrentTransform)(
      |               ^
...
7 warnings generated.

^ but x100

fix

This does it:

...
else:
  ...
  when defined(windows):
    ...
    when defined(clang) and defined(cpp):
      {.passC: "-D_CRT_SECURE_NO_WARNINGS".}
      {.passC: "-Wno-int-to-pointer-cast".}
      {.passC: "-Wno-microsoft-exception-spec".}

Please Help, unable compile the example code

root@uvew:~/uing/examples# nim c -d:useLibUiStaticLib --passL:"-I/root/libui/include -I/usr/include/gtk-3.0" --passC:"-L/root/libui/lib/x86_64-linux-gnu" datetime.nim
Hint: used config file '/root/nim-2.0.2/config/nim.cfg' [Conf]
Hint: used config file '/root/nim-2.0.2/config/config.nims' [Conf]
Hint: used config file '/root/uing/examples/nim.cfg' [Conf]
.................................................................................................
/root/uing/uing/rawui.nim(132, 1) Warning: '{.deadcodeelim: on.}' is deprecated, now a noop [Deprecated]
/root/uing/uing.nim(633, 35) Warning: r, g, b, a all have default value '1.0', this may be unintentional, either use ';' (semicolon) or explicitly write each default value [ImplicitDefaultValue]
/root/uing/uing.nim(2448, 32) Warning: r, g, b, alpha all have default value '1.0', this may be unintentional, either use ';' (semicolon) or explicitly write each default value [ImplicitDefaultValue]
/root/uing/uing.nim(3399, 14) Warning: use `dateTime`; initDateTime is deprecated [Deprecated]
Hint:  [Link]
/usr/bin/ld: libui.a(unix_alloc.c.o): in function `uninitComplain':
alloc.c:(.text+0x26): undefined reference to `g_strdup_printf'
/usr/bin/ld: alloc.c:(.text+0x31): undefined reference to `g_free'
/usr/bin/ld: alloc.c:(.text+0x4d): undefined reference to `g_strdup'
/usr/bin/ld: libui.a(unix_alloc.c.o): in function `uiprivInitAlloc':
alloc.c:(.text+0x69): undefined reference to `g_ptr_array_new'
/usr/bin/ld: libui.a(unix_alloc.c.o): in function `uiprivUninitAlloc':
alloc.c:(.text+0xb9): undefined reference to `g_ptr_array_foreach'
/usr/bin/ld: alloc.c:(.text+0xe9): undefined reference to `g_free'
/usr/bin/ld: alloc.c:(.text+0x10e): undefined reference to `g_ptr_array_free'
...
/usr/bin/ld: window.c:(.text+0xb10): undefined reference to `g_signal_connect_data'
/usr/bin/ld: window.c:(.text+0xb59): undefined reference to `g_object_ref'
/usr/bin/ld: window.c:(.text+0xb8c): undefined reference to `gtk_container_add'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowSetContainer':
window.c:(.text+0x12c): undefined reference to `gtk_container_remove'
/usr/bin/ld: window.c:(.text+0x135): undefined reference to `gtk_container_add'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowDisable':
window.c:(.text+0x17e): undefined reference to `gtk_widget_set_sensitive'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowEnable':
window.c:(.text+0x1a1): undefined reference to `gtk_widget_set_sensitive'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowEnabled':
window.c:(.text+0x1bc): undefined reference to `gtk_widget_get_sensitive'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowHide':
window.c:(.text+0x1d3): undefined reference to `gtk_widget_hide'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowShow':
window.c:(.text+0x1ec): undefined reference to `gtk_window_present'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowVisible':
window.c:(.text+0x1fc): undefined reference to `gtk_widget_get_visible'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowSetTitle':
window.c:(.text+0x2cc): undefined reference to `gtk_window_set_title'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowPosition':
window.c:(.text+0x2dc): undefined reference to `gtk_window_get_position'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowSetFullscreen':
window.c:(.text+0x5e6): undefined reference to `gtk_window_fullscreen'
/usr/bin/ld: window.c:(.text+0x5f1): undefined reference to `gtk_window_unfullscreen'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowSetBorderless':
window.c:(.text+0x6b6): undefined reference to `gtk_window_set_decorated'
/usr/bin/ld: libui.a(unix_window.c.o): in function `uiWindowSetResizeable':
window.c:(.text+0x7c9): undefined reference to `gtk_window_set_resizable'
/usr/bin/ld: libui.a(unix_util.c.o): in function `uiprivSetMargined':
util.c:(.text+0xe): undefined reference to `gtk_container_set_border_width'
/usr/bin/ld: util.c:(.text+0x1b): undefined reference to `gtk_container_set_border_width'
collect2: error: ld returned 1 exit status
Error: execution of an external program failed: 'gcc   -o /root/uing/examples/datetime  /root/.cache/nim/datetime_r/@m..@[email protected]@slib@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@slib@sstd@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@slib@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@slib@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@slib@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@slib@[email protected] /root/.cache/nim/datetime_r/@m..@[email protected]@slib@[email protected] /root/.cache/nim/datetime_r/@[email protected] /root/.cache/nim/datetime_r/@mdatetime.nim.c.o  -pthread -pthread -lm -lm -lrt libui.a  -I/root/libui/include -I/usr/include/gtk-3.0  -ldl'

Compiling calculator example fails on windows 11 using GCC

logs:


C:\Users\faisal\Desktop\uing-main\examples\calculator>nimble install
  Verifying dependencies for [email protected]
      Info: Dependency on uing@>= 0.2.0 already satisfied
  Verifying dependencies for [email protected]
 Installing nimkalc@any version
Downloading https://github.com/nocturn9x/nimkalc using git
  Verifying dependencies for [email protected]
 Installing [email protected]
   Success: nimkalc installed successfully.
 Installing [email protected]
   Building calculator/calculator.exe using c backend
C:\Users\faisal\nimcache\calculator_r\@m..@s..@s..@s..@s..@s..@[email protected]@slib@[email protected]: In function ‘atmdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsnimminus1dot6dot14atslibatssystematsiodotnim_Init000’:
C:\Users\faisal\nimcache\calculator_r\@m..@s..@s..@s..@s..@s..@[email protected]@slib@[email protected]:60:23: error: ‘_O_BINARY’ undeclared (first use in this function); did you mean ‘O_BINARY’?
   60 |         _setmode(T1_, _O_BINARY);
      |                       ^~~~~~~~~
      |                       O_BINARY
C:\Users\faisal\nimcache\calculator_r\@m..@s..@s..@s..@s..@s..@[email protected]@slib@[email protected]:60:23: note: each undeclared identifier is reported only once for each function it appears in
Error: execution of an external compiler program 'gcc.exe -c  -w -fmax-errors=3 -mno-ms-bitfields -DWIN32_LEAN_AND_MEAN -O3 -fno-strict-aliasing -fno-ident   -IC:\nim-1.6.14\lib -IC:\Users\faisal\Desktop\uing-main\examples\calculator\src -o C:\Users\faisal\nimcache\calculator_r\@m..@s..@s..@s..@s..@s..@[email protected]@slib@[email protected] C:\Users\faisal\nimcache\calculator_r\@m..@s..@s..@s..@s..@s..@[email protected]@slib@[email protected]' failed with exit code: 1


       Tip: 16 messages have been suppressed, use --verbose to show them.
     Error: Build failed for package: calculator
        ... Execution failed with exit code 1
        ... Command: C:\nim-1.6.14\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.1.0 --path:C:\Users\faisal\.nimble\pkgs\uing-0.8.0 --path:C:\Users\faisal\.nimble\pkgs\nimkalc-0.2.8 --hints:off -o:C:\Users\faisal\Desktop\uing-main\examples\calculator\calculator.exe C:\Users\faisal\Desktop\uing-main\examples\calculator\src\calculator.nim

Table

I have a question how to get the value of a row from an example with a table?
I have a question about the record. After clicking on the text "row 0 x col 1", it is not possible to save the change.
I see a lot of errors in the console
"GLib-GObject-CRITICAL**: 14:53:13.278: g_value_get_boxed: assertion 'G_VALUE_HOLDS_BOXED (value)' failed"

macosx screenshots and possible bug

Was trying out this library on a Mac VM since there aren't any screenshots yet and I noticed a weird layout issue on the second page of controlgallery3.nim. I took screenshots of all three tabs if you want to use them.

macosx1

Problem is here, it lays out the radio buttons with some vertical spacing in between the third one for some reason. Dunno if this is an issue with ui-ng, the wrapper, or the example program:

macosx2
macosx3

The problem goes away when resizing the window, but reappears when switching tabs. I am using a VM of Mojave (10.14.4).

finally a good nim UI lib

thank you neroist for making bindings for this lib! now i can finally enjoy some gui programming in nim :)

cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.