Write C++ on Windows but use Linux System calls through a Linux emulator -


i develop c++ on windows because prefer visual studio ide (eclipse on linux isn't nice). however, migrate linux , of code writing use low-level os system calls.

is there way can install linux emulator (not sure call it) on windows, write linux system calls in visual studio 2012 , have these system calls target emulator, rather windows os?

i have tagged vs2010 can use vs2012 also.

windows os win 7.

you've tagged question cygwin. seems best solution want. cygwin collection of programs emulate gnu/linux environment through use of a

dll (cygwin1.dll) acts linux api layer providing substantial linux api functionality.

here's link documentation api

edit: of cygwin source code i've looked @ written in c++ , makes system calls using ms windows api provide *nix emulation. source written , readable (even to non-c++ programmer such myself). think using cygwin transition programming on windows gnu/linux environment.


Comments