![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
Problem Getting Started with DevC++
Hey, i am pretty decent so far at C++ in school, but after downloading multipul compilers, including Dev C++, i have had continuous problems getting any of them to run. Even just opening a default built in project, like "hello world" if i try to compile and run, it allways kicks back an error or errors. In Dev C++, i keep getting this error:
CreateProcess(C:\DOCUME~1\Nick\LOCALS~1\Temp\make4682.bat, C:\DOCUME~1\Nick\LOCALS~1\Temp\make4682.bat, ...) failed. The process cannot access the file because it is being used by another process. C:\Dev-Cpp\Projects\Makefile.win [Build Error] [Hello.o] Error 32 What is going on? I have uninstalled, reinstalled and tried to figure it out, but nothing is working.. im sure im overlooking something ridiculous. Please help me out if you know whats wrong ![]() |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
You don't have the file opened in another editor or tool, do you? I did have a glitch creep into my make facility, once. It refused to change the cwd properly. Reinstalling fixed that, and since you've done that, I doubt you have a similar problem. Are you operating from the command line, the IDE, what? You might just want to walk through all the configuration/setup menus and peep around. Make sure your paths are correct. Make sure the correct compiler is on tap. Stuff like that.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
Yeah, i have been on and off this all day.. and i cant seem to get it to work at all. I have reinstalled it, and tried it in a new dir, but nothing is working. Does anyone have any idea why this is not working? Or can someone else recommend similar compiler to try out? And where to get a download?
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Don't know why it would matter, but why have you installed it in the temp directory? Because that's where it unzipped? Did you actually install it?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
Quote:
I checked all the option files and nowhere does it refer to that file. I have no clue why its not working at all. I am in the middle of downloading some stuff, but after im done, should i restart? Would that make any difference? |
|
|
|
|
|
|
#6 | |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
|
#7 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,260
Rep Power: 5
![]() |
IIRC, devcpp creates files temporarily while doing it's job (eg it creates a batch file and executes that). If the directory being referred to doesn't exist, then odds are devcpp is trying (and failing) to create and execute those temporary files. The option files may refer to that directory indirectly (eg via TEMP environment variable or similar).
Restarting won't hurt. If there is actually a process that has a file open, and is therefore preventing access to it, then restarting will be a good way to kill that process. |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
Btw, thanks for your help... Anyways, here is the exact step by step setup/install...
1 - Picked full install 2 - Destination file -> C:\Dev-Cpp 3 - Do i want to install for all users? Yes 4 - Msg popup, which i dont get: Your config files will be stored in c:\documents and settings\Nick\Application Data\Dev-Cpp Otherwise, you can pass the following parameter to Dev-C++: -c c:\config_file_directory 5 - picked style 6 - no, i dont prefer to use class browser and code completion list (tried is both ways) Thats it.. it opens up.. and nothing else happens... I just go File->New Proj-> and open the Hello World or console app and try a simple program... thats it.. And it always comes back with the previous error BTW, does it matter where i save the projects? I just make a new folder in the main directory and keep the files in that folder.. |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Apr 2006
Posts: 15
Rep Power: 0
![]() |
or should i somehow create the directory its looking for so there is a place for it to do the work?
|
|
|
|
|
|
#10 |
|
Newbie
Join Date: Apr 2006
Posts: 13
Rep Power: 0
![]() |
I don't know if this will help any but I remember something on SourceForges Dev cpp forum to the effect on Windows XP or 2000 that if you do a reinstall, that you must do a clean uninstall first. After using uninstall from DEV-CPP you have to delete the folder and then ther are a couple of files in hidden folder in the documents and settings path. I believe these were devcpp.ini and devcpp.cfg and these needed to be removed before reinstalling.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|