• Advertisement
Sign in to follow this  

Makefile/VC++.NET

This topic is 4583 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is it possible to import a project with a unix makefile into Visual C++.NET, painlessly?

Share this post


Link to post
Share on other sites
Advertisement
Not really. Chances are on your unix platform you're using gcc, which supports different switches and so on than MSVC. Also path variables in the unix environment won't match the windows directory structure. However, usually you can just create a new MSVC project and just add the source files from the unix project.

Well, sometimes anyways.

Share this post


Link to post
Share on other sites
I've not used it before, but CMake might do what you want.

Edit: looking at it, it might take quite a bit of work. I guess you're meant to use it to create projects for all platforms at the start of development.

Share this post


Link to post
Share on other sites
Quote:
Original post by JohnHurt
hmmm, it would be nice if there was a little utility to convert it.


Well paths and file locations are probably going to be your biggest hurdle. THe compiler and linker flags are fairly consistant across gcc and c1( vs.net's C++ compiler.

We use the same make file across linux, OSX and window so it can be done!!. We just need conditionals for things like include paths and lib paths.

oh and of course there will always be different libraries on different systems:)

CHeers
Chris

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement