Dev-Cpp + Vista...[Problem Solved]

My programming fun just took a nose-dive

Okay, Dev-C++ on XP is amazing and works amazingly well, and has 1 really good plus above the competition...it is FREE!!!

Dev-C++ on Vista, complete and utter fail... I have not been able to figure out why it wont compile my programs yet. This is bugging me a very very large amount. Because of this and my inability to figure out a reason for it to not compile I am bringing my problem here in hopes that someone will read this and know the answer to my problem.

When I attempt to compile it gives the error that "main.o" is not being created. I am guessing that main.o is the object file created for the project before it is actually converted into .exe format.

I am going to be looking through the Dev-C++ forums now and will post later with any positive results, but please feel free to give your opinion of my situation and possible fixes for it.

GalenEvil

14,805 views 6 replies
Reply #1 Top
I've been using Microsoft's Express versions of their compilers. They're also free, and generally work well. You may want to try them out.

Where are you compiling stuff to? One thing that changed in Vista is permissions: A lot more places in Vista are read only. You can't compile directly to something like, say, Program Files, because they are read only without escalation of privileges.

Yes, you describe "main.o" accurately. It is the object file created before it is linked and placed into an .exe file.
Reply #2 Top
Okay, thanks for the information. I figured out a workaround with vista for Dev-C++. It seems that MinGW gets installed into somewhere it shouldn't. To fix this I had to uninstall everything and then reinstall the newest version of MinGW as well as Dev-C++ (without the MinGW extras) and then add in a reference to the MinGW binaries.

I am the administrator on this computer so permissions really isn't a problem. I create and compile all of my programs in a folder I created called My Programs so that I wouldn't have to worry about trying to write to a read-only section of the computer. I am just now teaching myself how to program with the Win32 API, so being able to use a compiler I am familiar with (the tutorials I obtained use Dev-C++ by chance) is a boon.

Thanks again for the reply CobraA1, I have not looked into MS Express compilers yet. I greatly enjoy Dev-C++ and know the layout of it well. I will look into it later, but for now I am going to enjoy what I have.

GalenEvil
Reply #3 Top
I am the administrator on this computer so permissions really isn't a problem.


Unless you've disabled UAC (which I do not recommend), then most software actually runs in user mode in Vista, even in an administrative account.
Reply #4 Top

guys I am really confused, this year for arsity i need to do programming, it is really not my thing, but I have to as it is compulsary> I loaded the Dev C++ to my bf pc (xp) it works great BUT I have vista, so it is not working so eventually i got it to run, but now it does not compile and run the program??

I am really freaked out, my due dates for assignments is in one week, pls help.

Reply #5 Top

I highly recommend using Microsoft's Visual Studio Express C++ compiler instead.

GalenEvil was familiar with Dev C++, and he had the time to spend to set it up how he wanted. It does not sound like you have that luxury, so you should install ahnd use a compiler that is easy to set up.

Reply #6 Top

Depending on what you're trying to do, Visual Studio may be overkill. If you're just doing some simple console programming, you can also get Borland 5 for free, AFAIK.