Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Can I open a Visual Studio C++ project on Mac OS X and run the app?

share|improve this question
add comment

1 Answer 1

Although you will get more info from Windows/Mac developers on StackOverflow, I can tell you that depending upon the project and its dependencies, you might get away with it or you may not. Of course nothing Windows related can be run on OSX, so if you're only doing a "hello world", chances are you will be able to run it, provided you have the right toolchain to build that (gcc++, etc.)

Regarding whether there's a "Visual Studio Compatible IDE" the answer is "no" (unless you consider MonoDevelop which works 'ok' for some things).

The solution, of course, is to use one of the virtualization alternatives (Parallels, VMWare) or simply have a windows partition via Bootcamp.

share|improve this answer
1  
You won't get away with it at all - the code might run but it needs a recompile - the format of an executable differs and the libraries needed differ as well –  Mark Jul 3 '12 at 12:24
1  
I've also had success with the VirtualBox--a freely available virtualization application. –  ephsmith Jul 3 '12 at 12:37
    
+1 for Virtual Box. @Mark of course, but if you're making a simple C++ app you can easily get away and recompile that. It's obvious that you need to recompile for your new architecture/OS. But the question is really vague if you ask me. ;) –  Martín Marconcini Jul 3 '12 at 12:47
1  
@MartínMarconcini - my reading of the question is that it is NOT obvious to the OP –  Mark Jul 3 '12 at 12:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.