I'm trying to move a code from linux to windows to use it in Visual Studios. The first problem I came across was was that unistd.h didn't exist. Should have seen that coming. So try to see if there's a windows equivalent and I stumble across this:
Is there a replacement for unistd.h for Windows (Visual C)?
Following this example, I create put the code in a unistd.h file for the code, but notice it depends on getopt.h, so I follow another link to the github page and put that code in a getopt.h file. When I try to run the code, I get an error "a value of type "const char*" cannot be used to initalize an entity of type 'char*'", for getopt.h. Why is this happening? How would I go about dealing with the issue? Thanks!