I would like to port several applications that I use on Linux for Windows. In particular, I worked on wdiff . A program that compares differences in a word from two files.
Currently, I have been able to successfully compile the program on windows through Cygwin. However, I would like to run the program natively on Windows, similar to the project: UnixUtils .
How can I port unix utilities in windows environment?
My guess: manually create the file. / configure so that I can create the appropriate makefile. Am I on the right track? Has anyone had experience porting GNU software to windows?
Update:
I compiled it on Code :: Blocks and got two errors:
wdiff.c | 226 | error: `SIGPIPE 'undeclared (first use in this function)
readpipe.c: 71: undefined reference to `_pipe '
readpipe.c: 74: undefined reference to `_fork
This is a linux signal that is not supported by Windows ... equvilancy?
- wdiff.c | 1198 | error: `PRODUCT 'undeclared (first use of this function) |
this is in the configure.in file ... hardcode will probably be the fastest solution ...
Result:
MSYS took care of the configuration issues, however MinGW was unable to resolve posix issues. I am trying to use pthreads as recommended by mrjoltcola. However, after a few hours, I could not compile and link it using the provided libraries. I think that if it worked, that would be the solution I was. Special mention to Michael Madsen for MSYS.
c windows gnu porting
user295190
source share