Your problem may be easily solved without resorting to creating a new user just for using Dev-C++. The problem is that the toolchain creates temporary files, and being "well behaved" creates them in teh location nominated by teh TEMP (or possibly TMP) environment variable, In Windows this is normal set to the a location in the users profile folder.
Go to Control Panel->Performance & Maintenance (if you have category view on), then "System", select the "Advanced" tab, then the "Environment Variables" button. In the top "User Variables" panel, you will see two variables TMP and TEMP. Change them both to c:\temp or something similar. You may need to explicitly create this folder, I am not sure, but just to be on the safe side I would do so - it cannot hurt. You will probably also need to restart Dev-C++ for it to pick up the new environment.
You should also rename "New Folder" to something without spaces.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, you have your project stored in a folder with spaces in the name, that is a bad idea and can cause major headaches. Where did you install Dev? And is your username on that system something with spaces in it as well?
i.e. John Smith
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does the username on that system mean the user account name of the Windows? If yes, then my username really got with spaces and even '&'.
i.e. Alvin & Metta Tan
I installed Dev in C:.
May I ask that why project stored in a folder with spaces in the name is a bad idea and can cause major headaches? Could you tell me, Wayne?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The compiler and some of its related tools, like "make", tend to interpret spaces as the
end if input in some cases, so a name like "Program Files" is interpreted as simply
"Program", because the space means - "that's all" to it.
This used to be fatal in Dev, but a lot of work was done that fixed many of the places
where this can occur. However, in a way it is worse, as the problem has become intermittent,
and this leads to a lot of discussions of the form "But that can't be what's wrong, it
has always worked before."
Having spaces in a username will probably be an issue with some software - to deal with
portability issues, I never take a chance on (1) Spaces or (2) Special characters in my
username.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know i'm a noob but i need your help as I'm a beginner....
Here is my problem: [From compile log]
===============================================================================
Compiler: Default compiler
Building Makefile: "D:\New Folder\Makefile.win"
Executing make...
make.exe -f "D:\New Folder\Makefile.win" all
gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"
'C:\DOCUME~1\ALVIN' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
make.exe: *** [main.o] Error 1
Execution terminated
Could anyone tell me how to do?
Your problem may be easily solved without resorting to creating a new user just for using Dev-C++. The problem is that the toolchain creates temporary files, and being "well behaved" creates them in teh location nominated by teh TEMP (or possibly TMP) environment variable, In Windows this is normal set to the a location in the users profile folder.
Go to Control Panel->Performance & Maintenance (if you have category view on), then "System", select the "Advanced" tab, then the "Environment Variables" button. In the top "User Variables" panel, you will see two variables TMP and TEMP. Change them both to c:\temp or something similar. You may need to explicitly create this folder, I am not sure, but just to be on the safe side I would do so - it cannot hurt. You will probably also need to restart Dev-C++ for it to pick up the new environment.
You should also rename "New Folder" to something without spaces.
Clifford
Well, you have your project stored in a folder with spaces in the name, that is a bad idea and can cause major headaches. Where did you install Dev? And is your username on that system something with spaces in it as well?
i.e. John Smith
Wayne
Does the username on that system mean the user account name of the Windows? If yes, then my username really got with spaces and even '&'.
i.e. Alvin & Metta Tan
I installed Dev in C:.
May I ask that why project stored in a folder with spaces in the name is a bad idea and can cause major headaches? Could you tell me, Wayne?
The compiler and some of its related tools, like "make", tend to interpret spaces as the
end if input in some cases, so a name like "Program Files" is interpreted as simply
"Program", because the space means - "that's all" to it.
This used to be fatal in Dev, but a lot of work was done that fixed many of the places
where this can occur. However, in a way it is worse, as the problem has become intermittent,
and this leads to a lot of discussions of the form "But that can't be what's wrong, it
has always worked before."
Having spaces in a username will probably be an issue with some software - to deal with
portability issues, I never take a chance on (1) Spaces or (2) Special characters in my
username.
Wayne