I just installed Dev-C++ on my Windows XP box. I created a project and added a .cpp source code file to the project that I had copied to the C:\Dev-cpp directory from my thumb drive. The code compiled and ran successfully on a computer at school with MS Visual Studio 2008 and a Linux box using Eclipse. Therefore I am pretty certain that the issue I'm experiencing is not a problem with the code.
When I tried to compile and run the code in Dev-C++ it would not compile or run. The compiler log shows the following:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
C:\Dev-Cpp\Makefile.win:26: *** target pattern contains no `%'. Stop.
I have no idea what this means or how to fix it. I check the help files for Dev-C++ and found no information on this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> Probably because that was the folder that the Dev-C++
> defaulted to when I created the project...
Yes it does that even if you tell it a difefrent working folder in teh short-cut. It's real dumb.
> It wasn't difficult to distinguish my files, since I knew the
> names of the files I copied over
I was really referring to the many intermediate and generated files that a build may generated rather than your own source.
> it would be nice if you didn't address me like I'm some
> kind of idiot.
I don't believe I did, but you do have to realise that this is a world-wide public forum; not everyone out there is necessarily going to meet your expected standards of politeness or consideration. Many people will be downright abusive and nasty. I am merely acerbic. On top of that there are many varied cultural differences that result in variances in acceptable behaviour. Moreover you can personally apply a tone to written text that the writer did not intend, that is to say that the attitude is in your head not that of the writer. Basically toughen up, because there is worse out there.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> that I had copied to the C:\Dev-cpp directory from my thumb drive.
First mistake. Why would you keep your own project data in the tools's installation folder!? It is a bad idea, but there is also an apparent bug in Dev-C++ that causes builds in C:\Dev-cpp or subfolders thereof to fail. Put your project in say c:\devprojects\myfirstproject\ or similar, but not in the installation folder, and not in a path containing spaces.
> The code compiled and ran successfully on a computer at
> school with MS Visual Studio 2008
Then you know that your best bet would be to use the same tool at home too? It is available free and legal at http://www.microsoft.com/express/vc/
> I am pretty certain that the issue I'm experiencing is not
> a problem with the code.
The log would indicate that too, the error is reported by teh make utility not the compiler. Of course that does not make the code necessarily correct, it failed before it even got to the code!
> C:\Dev-Cpp\Makefile.win:26: *** target pattern contains no `%'. Stop.
>
>I have no idea what this means
Me neither. makefile.win is a file generated by Dev-C++ to build your project using the GNU make utility. It is a plain text file, and the complaint is about line 26 of that file.
I suggest that you move or recreate your project to a new folder as suggested (probably best to recreate it since as you dumped it in the installation folder you may not be able to distinguish your files from Dev-C++'s!). If you move it, do not include makefile.win, it needs to be regenerated.
If the same problem recurs, you will have to post the makefile.win so we can see the line it is complaining about in context.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> Why would you keep your own project data in the tools's installation folder!? It is a bad idea
Probably because that was the folder that the Dev-C++ defaulted to when I created the project...
> (probably best to recreate it since as you dumped it in the installation folder you may not be able to distinguish your files from Dev-C++'s!)
It wasn't difficult to distinguish my files, since I knew the names of the files I copied over
Your suggestions worked and I appreciate the help but it would be nice if you didn't address me like I'm some kind of idiot. If you're going to take the time to answer someone's questions why get an attitude about it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just installed Dev-C++ on my Windows XP box. I created a project and added a .cpp source code file to the project that I had copied to the C:\Dev-cpp directory from my thumb drive. The code compiled and ran successfully on a computer at school with MS Visual Studio 2008 and a Linux box using Eclipse. Therefore I am pretty certain that the issue I'm experiencing is not a problem with the code.
When I tried to compile and run the code in Dev-C++ it would not compile or run. The compiler log shows the following:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
C:\Dev-Cpp\Makefile.win:26: *** target pattern contains no `%'. Stop.
I have no idea what this means or how to fix it. I check the help files for Dev-C++ and found no information on this.
> Probably because that was the folder that the Dev-C++
> defaulted to when I created the project...
Yes it does that even if you tell it a difefrent working folder in teh short-cut. It's real dumb.
> It wasn't difficult to distinguish my files, since I knew the
> names of the files I copied over
I was really referring to the many intermediate and generated files that a build may generated rather than your own source.
> it would be nice if you didn't address me like I'm some
> kind of idiot.
I don't believe I did, but you do have to realise that this is a world-wide public forum; not everyone out there is necessarily going to meet your expected standards of politeness or consideration. Many people will be downright abusive and nasty. I am merely acerbic. On top of that there are many varied cultural differences that result in variances in acceptable behaviour. Moreover you can personally apply a tone to written text that the writer did not intend, that is to say that the attitude is in your head not that of the writer. Basically toughen up, because there is worse out there.
Clifford
> that I had copied to the C:\Dev-cpp directory from my thumb drive.
First mistake. Why would you keep your own project data in the tools's installation folder!? It is a bad idea, but there is also an apparent bug in Dev-C++ that causes builds in C:\Dev-cpp or subfolders thereof to fail. Put your project in say c:\devprojects\myfirstproject\ or similar, but not in the installation folder, and not in a path containing spaces.
> The code compiled and ran successfully on a computer at
> school with MS Visual Studio 2008
Then you know that your best bet would be to use the same tool at home too? It is available free and legal at http://www.microsoft.com/express/vc/
> I am pretty certain that the issue I'm experiencing is not
> a problem with the code.
The log would indicate that too, the error is reported by teh make utility not the compiler. Of course that does not make the code necessarily correct, it failed before it even got to the code!
> C:\Dev-Cpp\Makefile.win:26: *** target pattern contains no `%'. Stop.
>
>I have no idea what this means
Me neither. makefile.win is a file generated by Dev-C++ to build your project using the GNU make utility. It is a plain text file, and the complaint is about line 26 of that file.
I suggest that you move or recreate your project to a new folder as suggested (probably best to recreate it since as you dumped it in the installation folder you may not be able to distinguish your files from Dev-C++'s!). If you move it, do not include makefile.win, it needs to be regenerated.
If the same problem recurs, you will have to post the makefile.win so we can see the line it is complaining about in context.
Clifford
> Why would you keep your own project data in the tools's installation folder!? It is a bad idea
Probably because that was the folder that the Dev-C++ defaulted to when I created the project...
> (probably best to recreate it since as you dumped it in the installation folder you may not be able to distinguish your files from Dev-C++'s!)
It wasn't difficult to distinguish my files, since I knew the names of the files I copied over
Your suggestions worked and I appreciate the help but it would be nice if you didn't address me like I'm some kind of idiot. If you're going to take the time to answer someone's questions why get an attitude about it?