Windows Sapi 5 - com unclear (new to Nim - programming with Nim after Python proof of concept)

2021-11-05 Thread VVX7
sorry to necro/hijack this thread. hey, @ward how can I get in touch?

FFI - how to use procs that return objects

2021-01-24 Thread VVX7
I re-read [The Nim memory model](https://zevv.nl/nim-memory/) and I think I see why the first example wouldn't have worked (when the stack unwinds `addr e` no longer points to `e`). I updated the example @shirleyquirk provided but I still have a read from nil error. This is confusing because `c

FFI - how to use procs that return objects

2021-01-24 Thread VVX7
I'm trying to use Nim's FFI to import a proc from a compiled Nim library that returns an object `Foo`. I want to create a `Foo` object from the pointer returned by this imported proc. I get an illegal storage access error. This seems like it should be simple, what am I doing wrong?

Docker image for cross compiling

2021-01-15 Thread VVX7
This is really cool. Would be great if it included a start up script to install nimble packages too.

Error cross-compiling json-nim-rpc

2021-01-07 Thread VVX7
MinGW is creating this path somehow.

Error cross-compiling json-nim-rpc

2021-01-06 Thread VVX7
Yep, the csources are there. I'm new to MinGW so I'm not sure how to fix that path issue. If this were a case of MinGW incorrectly building a path then I would expect it to be a common problem for anyone cross-compiling with a wrapped c library. Unfortunately I'm not turning up more info on wha

Error cross-compiling json-nim-rpc

2021-01-06 Thread VVX7
ecls.nim\csources\src\codec\ccopy CC: decls.nim\csources\src\codec\dec16be CC: decls.nim\csources\src\codec\dec16le CC: decls.nim\csources\src\codec\dec32be x86_64-w64-mingw32-gcc: error: /home/VVX7/.nimble/pkgs/bearssl-0.1.5/bearssl/decls.nim\csources\src\codec\ccopy.c: No such file