Refactoring C Code: Multi-Platform and Valgrind
See the original posting on DZone Python
I decided that it is time to take my network protocol and make it cross platform, so I tried to compile it on the Linux subsystem for Windows. As an aside, the fact that I could edit everything in Visual Studio while compiling using GCC and having immediate feedback is amazing, given the usual workflow that this entails. And I would very much like to hear about an IDE that is comparable to Visual Studio out there.
I got to say, the situation for dependencies on C/C++ is flat out horrible. Im depending on OpenSSL for this code, and I have used VCPkg for actually setting up the dependency. On WSL, on the other hand, the OpenSSL packages are from 2014(!), so they were incompatible. I recompiled the lastest stable on WSL and tried to get it to work. It didnt, first it didnt put the new code in the right place and when I forced it to use the right paths, it failed with missing methods. It looks like Im spoiled from the point of backward compatibility, but several methods have been deprecated or flat our removed.