tqdm / tqdm.cpp

C++ port of tqdm
Other
318 stars 29 forks source link

Usage on Windows #60

Open Username-Username007 opened 1 year ago

Username-Username007 commented 1 year ago

poll.h and unistd.h is for Unix-like systems and not available on Windows. If you are using VS2019 on windows, you can modify utlis.h: change #include into #include change #include into #include

change poll into WSAPoll Since WSAPoll's binary lib is in ws2_32.lib, you'll have to add:

pragma comment(lib, "ws2_32.lib")

to utlis.h file my ws2_32.lib is located in "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\WS2_32.Lib" (I'm using x64, select your own architecture)

Rt39 commented 11 months ago

Is there any progress to this issue? I still cannot use it on Windows

Rt39 commented 11 months ago

May I make a pull request according to your advice and make it fit to MSVC?

Username-Username007 commented 11 months ago

May I make a pull request according to your advice and make it fit to MSVC?

Sorry, I don't have it now. I remember the effect is not good, so I just abandoned it. My recommendation is, if you can't use it, don't use it.