Why windows.h file is always included into compilation on Windows?

2021-12-12 Thread greenfork
> Not really sure if it would work (I'm not much experienced in C) but what > about using --passC option of Nim to give "-include " to > gcc ? The file is included as a part of a compiler magic when I use the `header` pragma. I'm not sure if can rely on the success if this really helps, it coul

Nim to lib

2021-12-12 Thread ftsf
Hi, You can see the compiler docs here specifically you'll want to compile with `--app:lib` or `--app:staticlib` Any functions you want exported in your library want to have `{.exportc,dynlib,cdecl.}` (you can skip dynlib if it's for a staticlib)

Nim to lib

2021-12-12 Thread archnim
Hello world. Please how to compile my Nim code to static and dynamic lib ? Then, how to load them in a project ? Thanks in advance.

Nim interact with Windows .NET Frameworks

2021-12-12 Thread oyster
first I have to confess that I know nothing about .NET programming can anyone point out how to use external 3rd part .NET DLL? Thanks for example, the code( from ) which uses

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread luqaska
I think it would work in my case

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread luqaska
Ok, I'll have that in mind the next time I have to make a question Thank you very much to all people who participed in this thread

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread luqaska
Check if paramStr(1) exists

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread ynfle
Also don't import system, it's imported automatically

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread Yardanico
I assume you want to output the first command-line argument passed to the binary. Your code has a lot of unnecessary stuff, first of all, you don't need to import `system` modules explicitly - system is always imported. Then your usage of `declared` is wrong - first of all, it's supposed to be u

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread SolitudeSF
what are you even trying to do?

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread xigoi
Maybe you meant if paramCount() >= 1: Run

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread argl
I think the issue is that `declared` is evaluated at compile time while `paramStr` can only work at runtime.

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread aEverr
declared is a compile time construct, paramstr is a runtime construct. declared cannot take information from paramstr

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread luqaska
So, I had this code: import std/os import system/io echo paramStr(1) if declared(paramStr(1)) == true: echo It exists else: echo It doesn't exists Run And then while I was compiling this error ocurred: `Error: identifier expected, but g

Error: identifier expected, but got: paramStr(1)

2021-12-12 Thread luqaska
Ohhh... But, there is an alternative to `declared` that could I use?

What is programming?

2021-12-12 Thread ynfle
Atom Bomb?

What is programming?

2021-12-12 Thread cmc
> There really isn't anything in this world more dangerous than software. If > you can think of something please let me know. Biotech

Why windows.h file is always included into compilation on Windows?

2021-12-12 Thread icedquinn
I wasn't aware that it was but I would assume that windows APIs would be used by the standard library on windows.

Renovate Bot

2021-12-12 Thread icedquinn
Found this while reviewing tasks earlier: / Open source thing that is supposed to see what dependencies your project has and tries to create pull requests to upgrade those dependencies. Good if you like to vendor them to make su

Why windows.h file is always included into compilation on Windows?

2021-12-12 Thread sky_khan
Not really sure if it would work (I'm not much experienced in C) but what about using --passC option of Nim to give "-include " to gcc ?

Httpbeast failed to compile on Android arm device

2021-12-12 Thread dom96
yeah, your Nim version appears to be outdated

Why windows.h file is always included into compilation on Windows?

2021-12-12 Thread greenfork
`windows.h` is a particularly nasty file, it uses a lot of types and functions without a prefix a.k.a. namespace. This creates collisions with a Raylib C library. I have solved it with a [terrible hack](https://github.com/greenfork/nimraylib_now/blob/master/HACKING.md#whats-up-with-name-mangling

Keyxn: Shamir Secret Sharing in pure Nim

2021-12-12 Thread icedquinn
this is also fun because you can use it to create password recovery systems where you otherwise might not be able to. since you can make some number of security questions and shard the secret across them it allows you to do some kind of "get 15/20 questions right." handy for stuff like Tox where

Keyxn: Shamir Secret Sharing in pure Nim

2021-12-12 Thread elcritch
## KeyXN Fun side project for the weekend, [Keyxn](https://github.com/elcritch/keyxn). ## About Easily create N cryptographically secure shares of a secret, with only K parts required to recover the secret (K <= N). This can be a fun way to share a secret among N people and allow any K of them

thriftcore - Apache Thrift primitives

2021-12-12 Thread icedquinn
Packaged up THeader with the protocol interface tonight. It wraps over top another protocol just like in the Apache codebase. Does not have transports and codegen though.