So I have a simple Hello World program written in c++, in Visual Studios '10 Express to be specific, and I was wonder how I can open in on my OS X? I Have tried wine, but the program closes immediately. The program works perfectly on my Windows computer, I have found other articles with similar problems, but none of the suggested fixes works for me. I have tried both Debug and Release versions of the program, neither works. I can write the same program in Eclipse C++ on my Mac and it works fine, however, that is not how I want to do this.

Wiki

Users want to run applications and sometimes a change to Wine can cause an application to. A tool made by the same team as PlayOnLinux but for Mac user.

Is there anyway to accomplish this using Wine or something similar? I have not, the Mac is actually a school computer, and the program I will be making, after I get the 'Hello World' binary to work, is actually a simple Memory Text Game (EDIT: The game is for my Psychology class). As for the persistent command prompt environment, if you mean the program keeps itself open while waiting for the user to input something or close the window, then yes. If that is something in Wine I need to check, then most likely not. This is not 'Why is my console window closing down?' The program runs perfectly on my Windows computer. Just in-case it could be any help what so ever, this is my code.

The Mac is actually a school computer. So then you didn't actually try the solution that helios put up because you can't for a lack of permissions. You see little details like this one matter A LOT when we're trying to provide a solution to something like this. My suggestion in this case would be to switch to an IDE that supports a consistent interface and a compiler for both a POSIX and Windows environment. Code::Blocks comes to mind since it's free, has both a Windows and a Mac version and comes with instructions on how to make it portable that can be found here: For trivial applications like this portability of the code should not be a problem. You'll still need to recompile it in a new project for each platform you are targeting though.

I REALLY hope that the images between the workstations in your computer lab are homogeneous otherwise you're in for some frustration. Well, hold on now, I never said I didn't have permissions, the student accounts are admin accounts. Unlike most schools, we are allowed to download and install things, I did try the solution helios suggested. The problem with me installing a VM is that they are very resource needy, where this Mac can barely run itself. Aside from that, assuming I can get it to run a VM, I need to get this to other students computers so they can play the game. I actually had a similar idea, I thought that possibly it is VS2010's doing that is not allowing Wine to run it.

So I have been downloading Code Blocks during this conversation, I was hoping we could come up with something easier using my already installed software. If we can't, I will report back about how Code Blocks works, for now, I have a 15 minute download on each machine ahead of me. I have not read the supplied link, I am doing that as soon as I am done typing this; however, based on this statement: You'll still need to recompile it in a new project for each platform you are targeting though. Outlook for mac 2011 cannot connect to hosted exchange server. I'm assuming it will run in Terminal on the Mac, which again, I do not want. Instead, I was looking for more of what Wine spits out if you feed it a.Bat file, which I was initially going to use to write the game, but decided to do it in C++ because of limitations. The student accounts are admin accounts. We are aloud to download and install things.

This Mac can barely run itself. We are aloud to download and install things. The student accounts are admin accounts. I want you to know that I will likely spend the next ten or so minutes curled up on the floor repeating to myself that correlation does not imply causation. I still want to help, but if you don't hear from me for a while it's just because I need to get over the idea of your last post.