I am having a bit of a problem with Dev-C++. When I try to compile a project with a short program I get a compile error. When I write the same program in a source file without a project it will compile and run.
The error is highlighted below in the compile log. The error is printed here for ease of reading:
'C:\DOCUME~1\FRANK' is not recognized as an internal or external command,
operable program or batch file.
here's hoping I have installed the Dev-C++ according to your directions and from the book written by Jeff Cogswell, C++ all-in-one desk reference for Dummies. Perhaps I am a dummy or my computer is not cooperating.
At any rate, can you help me correct the problem. If blackmail will work I will contribute to Bloodshed. Thanks for your help.
Below is information to allow you to see what I have done. Thanks for any help.
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Version 4.9.9.2
int main(int argc, char *argv[])
{
cout << "This should print out" << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
Compiler
File Message
C:\Dev-Cpp\Frank Program Files\Makefile.win [Build Error][main.o] Error 1
Compile Log
Compiler: Default compiler
Building makefile: "C:\Dev-Cpp\Frank Program Files\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Frank Program Files\Makefile.win" all
g++.exe -c main.cpp -o main.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"
'C:\DOCUME~1\FRANK' 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
My Computer Information:
System:
Microsoft Windows SP
Home Edition
Version 2002
Service Pack 2
Dell Computer Corporation
Dell Dimension DIM4400
Intel®
Pentium® 4 CPU 1.60GHz
1.60GHz, 512 MB of RAM
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Sir:
I am having a bit of a problem with Dev-C++. When I try to compile a project with a short program I get a compile error. When I write the same program in a source file without a project it will compile and run.
The error is highlighted below in the compile log. The error is printed here for ease of reading:
'C:\DOCUME~1\FRANK' is not recognized as an internal or external command,
operable program or batch file.
here's hoping I have installed the Dev-C++ according to your directions and from the book written by Jeff Cogswell, C++ all-in-one desk reference for Dummies. Perhaps I am a dummy or my computer is not cooperating.
At any rate, can you help me correct the problem. If blackmail will work I will contribute to Bloodshed. Thanks for your help.
Below is information to allow you to see what I have done. Thanks for any help.
GNU GENERAL PUBLIC LICENSE
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Version 4.9.9.2
Project name: FrankFirstProject
Source File: Main.cpp
include <iostream>
include <stdlib.h>
using namespace std;
int main(int argc, char *argv[])
{
cout << "This should print out" << endl;
}
Compiler
File Message
C:\Dev-Cpp\Frank Program Files\Makefile.win [Build Error] [main.o] Error 1
Compile Log
Compiler: Default compiler
Building makefile: "C:\Dev-Cpp\Frank Program Files\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Frank Program Files\Makefile.win" all
g++.exe -c main.cpp -o main.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"
'C:\DOCUME~1\FRANK' 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
My Computer Information:
System:
Microsoft Windows SP
Home Edition
Version 2002
Service Pack 2
Dell Computer Corporation
Dell Dimension DIM4400
Intel®
Pentium® 4 CPU 1.60GHz
1.60GHz, 512 MB of RAM
Storing your projects in directories with spaces in the paths is a bad idea:
C:\Dev-Cpp\Frank Program Files\Makefile.win
This also looks like some of you stuff may be in your My Documents folder (or the like), which also raises path issues:
'C:\DOCUME~1\FRANK' is not recognized as an internal or external command,
operable program or batch file.
The reason that this shows up is that a Project uses the "make" command, which is where some of the space issues come up.
Space do not always get you, but they do eventually.
I keep my source in
c:\mycstuff
Wayne