How can I compile for windows x86 bit machine on windows x64 bit machine?
Araq I checked again to see if that issue exist but now I am not able to
replicate it. It happend when I was setting up my workspace in a new linux
machine. Cant say for sure wt happened but it does work now.
Hi have been working with nim/ui for a month or so now. I can see a peice of
code in which I dnt understand in the wrapper.
proc `margined=`*(t: Tab; page: int; x: bool) =
tabSetMargined(t.impl, page.cint, cint(x))
and how to use it. The signature resembles to operator
I have developed a Tool for managing my driver using nim/ui. There two options
below which i used to compile my tool on linux.
1\. nim c --cc:gcc --threads:on driver.nim
2\. nim c --threads:on driver.nim
option 2 works but option 1 doesnt compile the libui library.
Its strange anyways gcc
@Stefan_Salewski, I was trying to read a num value from jsonNode using
proc getNum(n: JsonNode; default: BiggestInt = 0): BiggestInt {..}
which is a part of json module. Hence when you concatenate without converting
it to string it doesn't work. As I am new to nim I thought I
It will never work fine. As & operator doesn't work with integers. Integer need
to be stringified.
echo "abc" & $2
the above one works. Just figured that out.
I want to concatenate a string and int.
I tried doing
echo "abc" & 2
But it doesn't seem to work. One possible solution is to convert int to string
and then do the concatenation. But the value which I have is BigInt not int. So
conversion is not possible.
Thanks @dom96
Thanks yglukhov for the reply. It just an observation as I have just started
with nim-lang. So may be I was looking at things which I could do really fast
in go to be in nim. I will take some time to get used to nim
Thanks, dom96 . But still, the ease with which we can unmarshal and marshal
json into a data structure in Go-lang is uncomparable.
I have looking for a way to encode the json keys, but has not been able to find
anything on that.
For example Go lets us do this
type Response2 struct {
Page int json:"page" Fruits []string json:"fruits"
}
I want to unmarshal a json object but not able to encode the json keys. As my
key
No I am using this. But I have a driver written in nim which uses thread
extensively. I making a tool to give a UI interface to the driver. So when
click many UI widgets the UI frezzes as the firmware takes time to get the
status of the device. So I am not able to decide what is write way to do
I working with libui-nim wrapper. On some event in UI, I need to perform a
long-running task let say it takes 5s and then update UI accordingly. What is
the recommended way to do that nim?
I have the solution. It was a silly mistake. I had placed libui library at the
wrong place. Thanks for the response.
To which folder did u copy the libui.h file? I have cloned the libui from git
completely into my repository and it exists in the UI folder.
I am trying to run nim-lang ui wrapper for libui on windows. I am using vcc
compiler as suggested by araq on git [nim-lang ui
!](https://github.com/nim-lang/ui)
But I am getting issues while trying to run it.
"C:\Windows\system32\cmd.exe" /C ""C:\Program Files (x86)\Microsoft
I have installed oldwinapi and it exists in .nimblepkgs folder. But when I am
trying to import windows its giving me an error as
Error: cannot open 'windows'
Run Any help will be highly appreciated.
I have installed oldwinapi and it exists in .nimblepkgs folder. But when I am
trying to import windows its giving me an error as
Error: cannot open 'windows'
Any help will be highly appreciated.
Thanks. I figured out that yesterday and nimble got installed. But still nimble
refresh wont work. Do we have any fix for it?
I have placed packages.json in .nimble folder but I am still getting the same
problem.
20 matches
Mail list logo