E
E
einsturzende2020-11-16 18:08:21
linux
einsturzende, 2020-11-16 18:08:21

How to port a Linux console application to Windows?

The application works with the network via SSL and a little with the file system (it reads the config, gives it to the webmord). Sources in C. Libraries are not used. It would not be desirable to add a screw part of system calls. Didn't, by chance, technology reach some kind of autoconverter?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
W
Wataru, 2020-11-16
@einsturzende

You can try to put some realties mingw . It turns out like a Linux shell in Windows. You can compile sources in it, the resulting exe-shnik will automatically receive the translation of system calls. There is no guarantee that any code will start, but there are chances.
Those. you won't get the windows sources, but there is an option to compile these linux sources into an exe file, which may require mingw to be installed on the machine where the application will run.
Edit, maybe mingw won't help here and cygwin is needed . There was also some msys. But I'm not sure.
At worst, under Windows 10 there is WSL .

M
mayton2019, 2020-11-16
@mayton2019

Most likely, you need to run the compiler and assess the scale of the tragedy. And after that write a new message to the toaster.
I strongly doubt our "forecasts" here in the absence of information.

S
Sergey Karbivnichy, 2020-11-16
@hottabxp

Didn't, by chance, technology reach some kind of autoconverter?
Of course they came. freelance.habr.com - various converters for every taste and color.
There is also an economy option - wsl. That's probably what it was made for.

D
Daniil Demidko, 2020-11-16
@Chronicler

Try to build via TDM-GCC on Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question