i have this message in result tab "compiler" :
-------------------------------------------------
C:\dev-cpp\Examples\Hello\Makefile.win
[Build Error] [Hello.o] Error 1
and this in the compile log :
-------------------------------------------------
Compiler: Default compiler
Building Makefile: "C:\dev-cpp\Examples\Hello\Makefile.win"
Executing make...
make.exe -f "C:\dev-cpp\Examples\Hello\Makefile.win" all
g++.exe -c Hello.cpp -o Hello.o -I"C:/dev-cpp/include/c++" -I"C:/dev-cpp/include/c++/mingw32" -I"C:/dev-cpp/include/c++/backward" -I"C:/dev-cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/dev-cpp/include"
g++.exe: Hello.cpp: No such file or directory
g++.exe: no input files
make.exe: *** [Hello.o] Error 1
Execution terminated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have the same f'ing problem! i tried writing my own hello world 'program' but it wouldn't compile, so i thought it was my code and tried the sample. It didn't work either! Im really new C++(not to programming though, if you call Visual Basic programming), could anyone please explain what im doing wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have replaced relative path (in makefile.win) for main.o, main.cpp and project1.exe by absolute path and i can compile. the othe alternative is to place all project files in c:\ to obtain a success compilation
for a little prog, is usable. but for medium/large project, it's unfair.
:(
i have searched for an env variable not set, i have searched in make/g++ help... i have found nothing.
:(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, I ran a test here at work this morning. For background, when I started the morning, I had Dev version 4.9.8.10 installed on my computer. So the first thing to do is get rid of it, and install Dev 4.9.9.0. This is a computer running Windows XP Pro.
(1) I ran the uninstall program in the Dev directory.
(2) I deleted my Dev directory. In my case, as I always do, it is installed in c:\dev-cpp
(3) I deleted my devcpp.ini and devcpp.cfg files. For me, these files were here, your location *may* differ:
C:\Documents and Settings\xxxxx\Local Settings\Application Data
Note that the "Local Settings" folder is what windows considers a "hidden" folder, it may not display if you have not set up your windows explorer to see hidden folders. Deleting thses files is *VITAL*, and they retain configuration information that can mess up a new install.
(4) I downloaded the 4.9.9.0 full setup program, it is about 7.6 MBytes in length.
(5) I installed in the default location. On my first running of Dev, I let it set up its cache for the code completion stuff, even though I never really use it.
(6) I went to File:Open Project or File, and went down to the example hello world directory, and opened the Hello.dev file. I then did a "Rebuild All" on the project. Here is my log:
(A) Do the clean uninstall process, like described here, or in the thread titled "The Forum FAQ - Please Read First". Make sure you delete all Dev directories. If you have previously tried to install in some place like "Program Files" - you may have a Dev directory in a place like c:\program - look for stuff like that. Think nuclear, wipe it out. Take your time here and do it right. Lingering traces of past installations can cause issues.
(B) Download Dev 4.9.9.0 (Full Version)
(C) Install it in the default location, usually c:\dev-cpp
(D) Try the example again.
(E) If an issue arises, *please* do not report back something along the lines of "I did just what you said" - report on - step by step what you did. Take the approach I did above, and make it better.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I forgot to mention. The code ran fine after compiling...this is probably obvious, unless it was some code I wrote.
Again, make sure you download the full version of Dev, and not the exe only version. It will be about 7.6 MBytes in size. I know this sounds obvious, and maybe even insulting, but your would be suprised at the number of folks that downalod the exe only version and are suprised to find they have no compiler.
Don't forget in your reporting to tell us what OS you are using.
I know I am blabbering on, but there is a point. When you have a problem, remember, we have not been there with you, so taking us step by step through what you did really helps
Wayne
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't compile a slightly different file. I get a different error . the file is meant to show a 3D animation while it says hello world!.I try but it does this (the directory is stupid):
line 2
C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp\2
unable to run program file
the compiler log says
Compiler: Default compiler
Building Makefile: "C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp\Makefile.win" all
Execution terminated
have I got the headers wrong or something?
(I'm a complete newbie)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
By the way, please avoid stopping into a thread and stating you have "the same problem". There are at least two folks here, with different problems. Always start a question like this with stating the basic 3:
(1) What version number of Dev are you using?
(2) Post a simple example program that is showing the effect you are seeing.
(3) Post your full compile log. If you have a ton of errors, start *from the beginning* and go through the first 5 or so errors. Never just excerpt the errors.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have this message in result tab "compiler" :
-------------------------------------------------
C:\dev-cpp\Examples\Hello\Makefile.win
[Build Error] [Hello.o] Error 1
and this in the compile log :
-------------------------------------------------
Compiler: Default compiler
Building Makefile: "C:\dev-cpp\Examples\Hello\Makefile.win"
Executing make...
make.exe -f "C:\dev-cpp\Examples\Hello\Makefile.win" all
g++.exe -c Hello.cpp -o Hello.o -I"C:/dev-cpp/include/c++" -I"C:/dev-cpp/include/c++/mingw32" -I"C:/dev-cpp/include/c++/backward" -I"C:/dev-cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/dev-cpp/include"
g++.exe: Hello.cpp: No such file or directory
g++.exe: no input files
make.exe: *** [Hello.o] Error 1
Execution terminated
i have the same f'ing problem! i tried writing my own hello world 'program' but it wouldn't compile, so i thought it was my code and tried the sample. It didn't work either! Im really new C++(not to programming though, if you call Visual Basic programming), could anyone please explain what im doing wrong?
i have replaced relative path (in makefile.win) for main.o, main.cpp and project1.exe by absolute path and i can compile. the othe alternative is to place all project files in c:\ to obtain a success compilation
for a little prog, is usable. but for medium/large project, it's unfair.
:(
i have searched for an env variable not set, i have searched in make/g++ help... i have found nothing.
:(
OK, I ran a test here at work this morning. For background, when I started the morning, I had Dev version 4.9.8.10 installed on my computer. So the first thing to do is get rid of it, and install Dev 4.9.9.0. This is a computer running Windows XP Pro.
(1) I ran the uninstall program in the Dev directory.
(2) I deleted my Dev directory. In my case, as I always do, it is installed in c:\dev-cpp
(3) I deleted my devcpp.ini and devcpp.cfg files. For me, these files were here, your location *may* differ:
C:\Documents and Settings\xxxxx\Local Settings\Application Data
Note that the "Local Settings" folder is what windows considers a "hidden" folder, it may not display if you have not set up your windows explorer to see hidden folders. Deleting thses files is *VITAL*, and they retain configuration information that can mess up a new install.
(4) I downloaded the 4.9.9.0 full setup program, it is about 7.6 MBytes in length.
(5) I installed in the default location. On my first running of Dev, I let it set up its cache for the code completion stuff, even though I never really use it.
(6) I went to File:Open Project or File, and went down to the example hello world directory, and opened the Hello.dev file. I then did a "Rebuild All" on the project. Here is my log:
rm -f Hello.o Hello.exe
g++.exe -c Hello.cpp -o Hello.o -I"C:/Dev-Cpp/include/c++/3.3.1" -I"C:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"C:/Dev-Cpp/include/c++/3.3.1/backward" -I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"C:/Dev-Cpp/include"
g++.exe Hello.o -o "Hello.exe" -L"C:/Dev-Cpp/lib"
Execution terminated
I recommend that you try the following:
(A) Do the clean uninstall process, like described here, or in the thread titled "The Forum FAQ - Please Read First". Make sure you delete all Dev directories. If you have previously tried to install in some place like "Program Files" - you may have a Dev directory in a place like c:\program - look for stuff like that. Think nuclear, wipe it out. Take your time here and do it right. Lingering traces of past installations can cause issues.
(B) Download Dev 4.9.9.0 (Full Version)
(C) Install it in the default location, usually c:\dev-cpp
(D) Try the example again.
(E) If an issue arises, *please* do not report back something along the lines of "I did just what you said" - report on - step by step what you did. Take the approach I did above, and make it better.
Wayne
I forgot to mention. The code ran fine after compiling...this is probably obvious, unless it was some code I wrote.
Again, make sure you download the full version of Dev, and not the exe only version. It will be about 7.6 MBytes in size. I know this sounds obvious, and maybe even insulting, but your would be suprised at the number of folks that downalod the exe only version and are suprised to find they have no compiler.
Don't forget in your reporting to tell us what OS you are using.
I know I am blabbering on, but there is a point. When you have a problem, remember, we have not been there with you, so taking us step by step through what you did really helps
Wayne
Wayne
Many thanks for using your time to respond
but, i have following your instructions (like other time). i have the same start of you... but the compile finish with:
g++.exe -c Hello.cpp -o Hello.o ....
g++.exe: Hello.cpp: No such file or directory
g++.exe: no input files
make.exe: *** [Hello.o] Error 1
Execution terminated
... need probably to reinstall winxp.
i m desesperate. lol... moderatly.
sry for my english and another lot of thanks
i recontact you when xp has been reinstalled, to inform you of the success (or not) of the install
try this for configuring
http://www.geocities.com/uniqueness_template/
This is a good page in many respects, but it is written around an older version of Dev.
Wayne
I can't compile a slightly different file. I get a different error . the file is meant to show a 3D animation while it says hello world!.I try but it does this (the directory is stupid):
line 2
C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp\2
unable to run program file
the compiler log says
Compiler: Default compiler
Building Makefile: "C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp\Makefile.win" all
Execution terminated
have I got the headers wrong or something?
(I'm a complete newbie)
There are 3 words that you need to be aware of:
SPACES ARE BAD
You installed Dev in the following directory:
C:\Program Files\Lionhead Studios\stuff\IDE\Dev-Cpp
Very bad idea. Unix ancestry tools do not handle spaces in paths well.
Now, you are going to need to do a clean uninstall on Dev. The directions, as I pointed out earlier in the thread, can be found in the thread titled:
"The Forum FAQ - Please Read First"
If you had read that first, you would have seen an answer to your "Unable To Run Program File" question.
Wayne
you know i think it may be that dev c++ does NOT include iostream... if i am wrong i am sorry but i am having the same problem...
Nope, its got iostream.
By the way, please avoid stopping into a thread and stating you have "the same problem". There are at least two folks here, with different problems. Always start a question like this with stating the basic 3:
(1) What version number of Dev are you using?
(2) Post a simple example program that is showing the effect you are seeing.
(3) Post your full compile log. If you have a ton of errors, start *from the beginning* and go through the first 5 or so errors. Never just excerpt the errors.
Wayne