I've just started using dev-cpp. I downloaded it and installed it into the default dir.. no problems..
I tested the hello sample in the examples folder it compiles the hello.cpp file alone but when i try to compile the project it turns an error:
'C:\DOCUME~1\BAR' i‡ ya da dŸ komut, ‡alŸtrlabilir //this is my user dir but i cant understand what it has to do with
program ya da toplu iŸ dosyas olarak tannmyor. //this poject..
Sistem belirtilen yolu bulamyor. //translation: system cant find dir
make.exe: *** [Hello.o] Error 1
Execution terminated
btw I'm a windows xp SP2 (turkish) user.
I've gone thru all of the topics i could, but i couldnt find a solution.. please help..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do not build the examples in the "C:\Dev-Cpp\" folder. First copy the examples folder to another location outside of the Dev-Cpp installation, "c:\cpp_projects" for example..
There is a known bug in Dev-C++ that in some circumstances prevents project in c:\dev-cpp or sub-folders thereof from building. Don't ask me why, but there is! Building in the installation folder is just a bad idea in any case.
After copying the folder, for those projects you have already attempted to build, you will probably have to perform a rebuild-all to clean out the folder and regenerate the makefile.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Possibly; Dev-Cpp accesses configuration files in your user profile.
However first delete the makefile.win file that Dev-C++ generated for the project and then do a rebuild all. If it was not regenerated after you moved the project, it may still not build. Then please if it does not work post the compile log. This confirms that you carried out the instructions correctly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> Can there be a problem with the turkish chars in my windows user name?
It might be that ...
In fact it seems I am having a similar problem, on a Japanese computer running under XP : my username is written in Japanese characters.
I installed the good old DevC++ version 4.9.9.2 on my new computer yesterday to get back to programming (after a break a couple of years long, time flies !), but I can't get it to compile anything.
Here goes a log ...
Compiler: Default compiler
Building Makefile: "F:\DEV\C\trav\poiscailles\Makefile.win"
Executing make...
make.exe -f "F:\DEV\C\trav\poiscailles\Makefile.win" all
g++.exe -c poiscaille1.o -l"F:/DEV/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -l"F:/DEV/Dev-Cpp/include/c++/3.4.2/backward" -l"F:/DEV/Dev-Cpp/include/c++/3.4.2/mingw32" -l"F:/DEV/Dev-Cpp/include/c++/3.4.2" -l"F:/DEV/Dev-Cpp/include" 'C:\DOCUME 1[jumbled characters probably standing for my username on this PC]
make.exe: *** [poiscaille1.o] Error 1
Execution terminated
So ... when installing I saw that the config file for DevC++ was created in c:/documents and settings/[my username in japanese]/Application Data/Dev-Cpp
This worried me because I've had countless problems with western software not getting along with the Japanese OS or the other way around, especially file paths issues.
When I saw I could not compile, and noticed the log displayed a jumbled filepath, first I looked here and there in the menus, and saw no reference to filepaths containing Japanese characters. Then I made a copy of the devcpp.ini file to my DevC++ folder (F:\DEV\Dev-Cpp), checked all filepaths (no obvious problems), and manually changed the line :
Config="C:\Documents and Settings[my username in japanese]\Application Data\Dev-Cpp\"
into :
Config="F:\DEV\Dev-Cpp\"
Then I went back to DevC++ and into Environment options>File & directories, and checked "use this alternate configuration file" :
F:\DEV\Dev-Cpp\devcpp.ini
No change, same error whenever I try to compile anything.
What's more, the devcpp.ini line Config automatically reverts to it C: original location. Complete with the Japanese characters.
Well well. Thanks for bearing with me so far, and sorry about the looong message. I just tried to be as precise as possible.
And now ... does anyone have an idea ?!? :-)
Cheers
Jaco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is a command line switch to specify the location of the configuration file. Note that there is a devcpp.ini and a devcpp.cfg file. (and also a mirrors.cfg file for the update utility).
You need to set the command line switch in any shortcuts you use to start Dev-C++ (on the start-menu, desktop, quick-start toolbar etc.).
Cannot remember what the switch is, (-c <path> possibly), but I believe that it is mentioned in the otherwise useless help file.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Clifford, and thanks a lot for your quick response !
This morning I too thought there might be a command line switch to specify which config file you want to use, and found a reference to it in the NEWS.txt file (it IS -c, by the way) ... Fiddled with this a bit, and the .ini file problems seem to be solved as far as I can tell !
However ... Nothing has changed :-) I still get the same error when I compile.
I have looked around, and saw no reference to the cursed Documents and Settings folder anywhere in the menus, or in the config file. In fact I found no reference to C: at all, anywhere. I may have overlooked something, but ...
Anyway there are only two files in the Docs&Settings/[my name]/application data/devcpp folder, namely devcpp.ini and devcpp.cfg (thanks for pointing out this last one, and by the way I have no mirrors.cfg anywhere). The devcpp.ini issue seems to be solved. devcpp.cfg, now : I moved it to my F:\DEV\Dev-Cpp\ folder, and then tried creating a new tool (just to open the DevC++ directory). There's now a new devcpp.cfg in C:\Documents&Settings[etc] with the tool I created. So this file seems to be stuck here ...
However these tools have nothing to do with compiling, right ... ?
What is supposed to happen after the g++.exe -c poiscaille1.o -l[...] command ? Why there should be a call to something in Docs&Settings beats me, like our friend Mike Soylu ...
Well. Any ideas ? Have I overlooked something ?
Cheers !
Jaco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Update : after a few more tries and some research, I have decided to give up :-) like I said I had been away from programming and computers in general for a few years, and these last days reminded me very well of why I chose to leave in the first place ... lol
I went for "plan B" ... a solution which, in terms of "concept" is far from satisfying, but well it works : I just created a new user with a name using only western characters. Obviously compiling works just fine this way. If I want to use DevC++ I "simply" have to switch users ...
Oh well.
Thanks for your help, Clifford, and if anyone has a real, or more elegant solution, I'd be very interested to hear about it.
A good weekend to all !
Jaco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Certainly real, entirely free, more powerful, more elgant (especially the debugger!), perhaps not so simple, and certainly much larger, but less buggy.
If it is going to stop you from giving up, I'd recommend it.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just started using dev-cpp. I downloaded it and installed it into the default dir.. no problems..
I tested the hello sample in the examples folder it compiles the hello.cpp file alone but when i try to compile the project it turns an error:
C:\Dev-Cpp\Examples\Hello\Makefile.win [Build Error] [Hello.o] Error 1
and the log is:
Building Makefile: "C:\Dev-Cpp\Examples\Hello\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Examples\Hello\Makefile.win" all
g++.exe -DDEBUG -c Hello.cpp -o Hello.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -g3
'C:\DOCUME~1\BAR' i‡ ya da dŸ komut, ‡alŸtrlabilir //this is my user dir but i cant understand what it has to do with
program ya da toplu iŸ dosyas olarak tannmyor. //this poject..
Sistem belirtilen yolu bulamyor. //translation: system cant find dir
make.exe: *** [Hello.o] Error 1
Execution terminated
btw I'm a windows xp SP2 (turkish) user.
I've gone thru all of the topics i could, but i couldnt find a solution.. please help..
Do not build the examples in the "C:\Dev-Cpp\" folder. First copy the examples folder to another location outside of the Dev-Cpp installation, "c:\cpp_projects" for example..
There is a known bug in Dev-C++ that in some circumstances prevents project in c:\dev-cpp or sub-folders thereof from building. Don't ask me why, but there is! Building in the installation folder is just a bad idea in any case.
After copying the folder, for those projects you have already attempted to build, you will probably have to perform a rebuild-all to clean out the folder and regenerate the makefile.
Clifford
Thanks for the fast reply but didn't work. I'm still geting the same error.
Can there be a problem with the turkish chars in my windows user name?
Possibly; Dev-Cpp accesses configuration files in your user profile.
However first delete the makefile.win file that Dev-C++ generated for the project and then do a rebuild all. If it was not regenerated after you moved the project, it may still not build. Then please if it does not work post the compile log. This confirms that you carried out the instructions correctly.
> Can there be a problem with the turkish chars in my windows user name?
It might be that ...
In fact it seems I am having a similar problem, on a Japanese computer running under XP : my username is written in Japanese characters.
I installed the good old DevC++ version 4.9.9.2 on my new computer yesterday to get back to programming (after a break a couple of years long, time flies !), but I can't get it to compile anything.
Here goes a log ...
Compiler: Default compiler
Building Makefile: "F:\DEV\C\trav\poiscailles\Makefile.win"
Executing make...
make.exe -f "F:\DEV\C\trav\poiscailles\Makefile.win" all
g++.exe -c poiscaille1.o -l"F:/DEV/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -l"F:/DEV/Dev-Cpp/include/c++/3.4.2/backward" -l"F:/DEV/Dev-Cpp/include/c++/3.4.2/mingw32" -l"F:/DEV/Dev-Cpp/include/c++/3.4.2" -l"F:/DEV/Dev-Cpp/include" 'C:\DOCUME 1[jumbled characters probably standing for my username on this PC]
make.exe: *** [poiscaille1.o] Error 1
Execution terminated
So ... when installing I saw that the config file for DevC++ was created in c:/documents and settings/[my username in japanese]/Application Data/Dev-Cpp
This worried me because I've had countless problems with western software not getting along with the Japanese OS or the other way around, especially file paths issues.
When I saw I could not compile, and noticed the log displayed a jumbled filepath, first I looked here and there in the menus, and saw no reference to filepaths containing Japanese characters. Then I made a copy of the devcpp.ini file to my DevC++ folder (F:\DEV\Dev-Cpp), checked all filepaths (no obvious problems), and manually changed the line :
Config="C:\Documents and Settings[my username in japanese]\Application Data\Dev-Cpp\"
into :
Config="F:\DEV\Dev-Cpp\"
Then I went back to DevC++ and into Environment options>File & directories, and checked "use this alternate configuration file" :
F:\DEV\Dev-Cpp\devcpp.ini
No change, same error whenever I try to compile anything.
What's more, the devcpp.ini line Config automatically reverts to it C: original location. Complete with the Japanese characters.
Well well. Thanks for bearing with me so far, and sorry about the looong message. I just tried to be as precise as possible.
And now ... does anyone have an idea ?!? :-)
Cheers
Jaco
There is a command line switch to specify the location of the configuration file. Note that there is a devcpp.ini and a devcpp.cfg file. (and also a mirrors.cfg file for the update utility).
You need to set the command line switch in any shortcuts you use to start Dev-C++ (on the start-menu, desktop, quick-start toolbar etc.).
Cannot remember what the switch is, (-c <path> possibly), but I believe that it is mentioned in the otherwise useless help file.
Clifford
Hi Clifford, and thanks a lot for your quick response !
This morning I too thought there might be a command line switch to specify which config file you want to use, and found a reference to it in the NEWS.txt file (it IS -c, by the way) ... Fiddled with this a bit, and the .ini file problems seem to be solved as far as I can tell !
However ... Nothing has changed :-) I still get the same error when I compile.
I have looked around, and saw no reference to the cursed Documents and Settings folder anywhere in the menus, or in the config file. In fact I found no reference to C: at all, anywhere. I may have overlooked something, but ...
Anyway there are only two files in the Docs&Settings/[my name]/application data/devcpp folder, namely devcpp.ini and devcpp.cfg (thanks for pointing out this last one, and by the way I have no mirrors.cfg anywhere). The devcpp.ini issue seems to be solved. devcpp.cfg, now : I moved it to my F:\DEV\Dev-Cpp\ folder, and then tried creating a new tool (just to open the DevC++ directory). There's now a new devcpp.cfg in C:\Documents&Settings[etc] with the tool I created. So this file seems to be stuck here ...
However these tools have nothing to do with compiling, right ... ?
What is supposed to happen after the g++.exe -c poiscaille1.o -l[...] command ? Why there should be a call to something in Docs&Settings beats me, like our friend Mike Soylu ...
Well. Any ideas ? Have I overlooked something ?
Cheers !
Jaco
Update : after a few more tries and some research, I have decided to give up :-) like I said I had been away from programming and computers in general for a few years, and these last days reminded me very well of why I chose to leave in the first place ... lol
I went for "plan B" ... a solution which, in terms of "concept" is far from satisfying, but well it works : I just created a new user with a name using only western characters. Obviously compiling works just fine this way. If I want to use DevC++ I "simply" have to switch users ...
Oh well.
Thanks for your help, Clifford, and if anyone has a real, or more elegant solution, I'd be very interested to hear about it.
A good weekend to all !
Jaco
>> if anyone has a real, or more elegant solution, [...]
http://www.microsoft.com/express/vc/
Certainly real, entirely free, more powerful, more elgant (especially the debugger!), perhaps not so simple, and certainly much larger, but less buggy.
If it is going to stop you from giving up, I'd recommend it.
Clifford