viperfish icon indicating copy to clipboard operation
viperfish copied to clipboard

Windows support

Open trirpi opened this issue 2 years ago • 3 comments

Just creating this issue. I will try to contribute to Windows support.

Seems the biggest problems are the use of curl.h and un.h.

trirpi avatar Oct 03 '23 10:10 trirpi

Hi @trirpi , thanks for creating this issue. I don't know anyting about Windows ) Do you know any examples or good practices for adding Windows support?

Which compliers should I use? As I remember there are at least two: MinGW and VS, and they probably differ.

Regarding contributions: I would be grateful for any help. However, please be aware that part of this code relies on data from an external server, which won’t be available for free, though a free tier may be offered. All of the code that doesn't use data will be free and this repo is gonna be a universal framework for algorithmic trading.

ilyakorovin avatar Oct 03 '23 13:10 ilyakorovin

I wouldn't call myself an expert, but seems like you're using Clang. There's also Clang on Windows, I've never used it. On Windows, you need to use clang in conjunction with either MSVC or MinGW. I'd pick MSVC, it's quite popular although they're both great. (MinGW is just a GCC port to Windows by the way.)

Not sure if it's a great example, but this is an example project that includes scripts for building with all compilers: https://github.com/chronoxor/CppTemplate

Then you can use some preprocessor directives to include the right implementations in the C++ code, but I'm sure you know that already.

Thanks for the heads up, I'll probably refrain from contributing until there's some clarity on the free tier.

trirpi avatar Oct 03 '23 13:10 trirpi

I wouldn't call myself an expert, but seems like you're using Clang. There's also Clang on Windows, I've never used it. On Windows, you need to use clang in conjunction with either MSVC or MinGW. I'd pick MSVC, it's quite popular although they're both great. (MinGW is just a GCC port to Windows by the way.)

Not sure if it's a great example, but this is an example project that includes scripts for building with all compilers: https://github.com/chronoxor/CppTemplate

Then you can use some preprocessor directives to include the right implementations in the C++ code, but I'm sure you know that already.

Thanks for the heads up, I'll probably refrain from contributing until there's some clarity on the free tier.

Interesting, thank you so much!

ilyakorovin avatar Oct 03 '23 14:10 ilyakorovin