Configure Visual Studio 2008 to compile Posix applications

I am an experienced programmer in .Net languages, but I have almost no experience in development in C ++ or C.

Currently, I need to develop an application for a device running on VxWorks (real-time OS). First we build the x86 version and then port it to VxWorks. Since VxWorks is compatible with Posix, we plan to create a Posix application on Windows. Since I was reading Windows, it’s not compatible with Posix, I installed Windows Services for UNIX.

Now that I'm a little lost, I suspect that I need 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 to do this. And maybe I don't understand how to develop Posix applications for x86.

Any tips would be greatly appreciated.

Thanks in advance!

+4
source share
1 answer

Didn’t you try it yourself, but since SFU contains mainly command line tools, including a compiler and debugger, IMHO you should write classic, handwritten makefiles for your project assembly. Visual Studio has a project like "Makefile Project" where you can configure which make utility to use. The default is nmake, but I'm sure you can replace this with gmake, which is part of SFU. If you have no experience with make, ask Google to try making a tutorial by finding, for example, this one .

+1
source

All Articles