Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 14th, 2006, 8:27 PM   #1
Nickyj1211
Newbie
 
Join Date: Apr 2006
Posts: 15
Rep Power: 0 Nickyj1211 is on a distinguished road
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
Nickyj1211 is offline   Reply With Quote
Old Apr 14th, 2006, 8:44 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Apr 14th, 2006, 9:03 PM   #3
Nickyj1211
Newbie
 
Join Date: Apr 2006
Posts: 15
Rep Power: 0 Nickyj1211 is on a distinguished road
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?
Nickyj1211 is offline   Reply With Quote
Old Apr 14th, 2006, 9:09 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Apr 14th, 2006, 9:16 PM   #5
Nickyj1211
Newbie
 
Join Date: Apr 2006
Posts: 15
Rep Power: 0 Nickyj1211 is on a distinguished road
Quote:
Originally Posted by DaWei
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?
yes i did install it, i didnt install it in a temp directory. As a matter of fact, that temp that it list there doesnt even exist. I installed it in c:\dev-cpp
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?
Nickyj1211 is offline   Reply With Quote
Old Apr 14th, 2006, 9:31 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
C:\DOCUME~1\Nick\LOCALS~1\Temp\make4 682.bat
There's almost certainly such a directory (it's a standard location, LOCALS~1 is Local Settings), but there may well be no such file. Something in the setup has the paths wrong. I mean, that's a pretty clear clue....
__________________
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
DaWei is offline   Reply With Quote
Old Apr 14th, 2006, 9:42 PM   #7
Nickyj1211
Newbie
 
Join Date: Apr 2006
Posts: 15
Rep Power: 0 Nickyj1211 is on a distinguished road
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..
Nickyj1211 is offline   Reply With Quote
Old Apr 14th, 2006, 9:57 PM   #8
Nickyj1211
Newbie
 
Join Date: Apr 2006
Posts: 15
Rep Power: 0 Nickyj1211 is on a distinguished road
or should i somehow create the directory its looking for so there is a place for it to do the work?
Nickyj1211 is offline   Reply With Quote
Old Apr 14th, 2006, 9:34 PM   #9
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,260
Rep Power: 5 grumpy will become famous soon enough
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.
grumpy is offline   Reply With Quote
Old Apr 14th, 2006, 11:00 PM   #10
Wilheimer
Newbie
 
Join Date: Apr 2006
Posts: 13
Rep Power: 0 Wilheimer is on a distinguished road
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.
Wilheimer is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC