Configure Visual Studio 2008 to compile Posix applications
I'm an experienced programmer in .Net languages but I have not almost any work experience in C++ or C development.
I currently have to develop an application for a device r开发者_运维问答unning VxWorks (a realtime OS). We will first build a x86 version and then port to VxWorks. As VxWorks is Posix compliant we plan to create a Posix application in Windows. As I've been reading Windows is not Posix compliant to I installed "Windows Services for UNIX".
Now I'm a bit lost, I suspect that I have to configure Visual Studio to compile using the Posix libraries and headers included in "Windows Services for UNIX" but I really don't know how. And maybe I'm understanding wrong how to develop Posix applications for x86.
Any hints would be very appreciated.
Thanks in advance!
Did not do it try it by myself, but since SFU contains primarily command line tools, including compiler and debugger, IMHO you have to write classical, handcoded makefiles for your project build. Visual Studio has a project type "Makefile project", where you can configure which make utility to use. Default will be nmake, but I am sure you can replace this by gmake that is part of SFU. If you don't have experience with "make", give Google a try with "make tutorial", finds you, for example, this one.
精彩评论