might be a dumb question -- but did you check your computer to see if those -I<path> paths actually exist?
Ancient Dragon
Achieved Level 70
32,128 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
Is C:\Dev-Cpp\bin in your path?
C:\Test\GnuC>path
PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C;\icc\bin;C:\Dev-Cpp\bin;C:\BC5\BIN;C:\watcom\BINNT;C:\watcom\BINW;c:\Perl\bin;C:\Program Files\ActiveState Komodo 3.1\;C:\Program Files\Common Files\GTK\2.0\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Autodesk\DWG TrueView\;..\tool;C:\Program Files\doxygen\bin;C:\Program Files\Subversion\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98;C:\Program Files\vslick\win;C:\NECTOOLS\BIN;..\tool;C:\COSMIC\EVAL08;c:\nectools32\bin;
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38
I'm asking you what I think your make utility is asking you. Does it know where to look for g++?
The stuff in the box is a copy of my result when I execute the path command in a command shell. It is telling me that the path to g++ is indeed available to my system. Yours tells you this is not so.
When you install Dev-Cpp, do you need to reboot to update the path? (It's been so long since I've done this that I forget.)
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38
>>When you install Dev-Cpp, do you need to reboot to update the path?
I think it depends on which version of Windows is running. W2K/XP, definitely not. Win95/98/ME, I'm not sure either (I never used ME)
Ancient Dragon
Achieved Level 70
32,128 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
Add c:\Dev-Cpp\bin\ to your path. Reboot.
(But it does appear to find the make utility, which I would assume is in the same directory, so I'm reaching for straws.)
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38
Add c:\Dev-Cpp\bin\ to your path. Reboot.
(But it does appear to find the make utility, which I would assume is in the same directory, so I'm reaching for straws.)
I use XP Pro too.
you might also check the length of the PATH environment variable. On my computer it's so long that there isn't any room left to add more. So I have a batch file to truncate the PATH to bare necessity so that I can run other command-line programs from command prompt.
Look at the end of the PATH as shown in command prompt -- if the last path isn't all there, then you probably have to same problem that I do.
Ancient Dragon
Achieved Level 70
32,128 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
Ancient Dragon
Achieved Level 70
32,128 posts since Aug 2005
Reputation Points: 5,836
Solved Threads: 2,575
Skill Endorsements: 69
I generally right-click My Computer, and select Properties to bring up the System Properties dialog. In the Advanced tab, click the Environment Variables... button. Then find the path variable and edit it. Alternatively, I think you can add it to the autoexec.bat which should be in the root directory.
You'll know you've done it correctly when you go to a command shell and type path, like you did earlier, and it now shows the d:\dev-cpp\bin as being part of the path.
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38
What is the code in main.cpp, and where is main.cpp located?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38
I save all the files like the source, resource, header and all the files created by the compiler in the same directory, "C:\Dev-Cpp\" from which I create a another directory depending on what Im creating for example "C:\Dev-Cpp\New_Project" is where I have saved all the files of a brand new project...and here is what main.cpp contains...
So you're saying that you are saving main.cpp in the compiler's home directory "C:\Dev-Cpp\"? First, that a practice I generally avoid. Though I doubt it's the problem here.
It looks to me that the make utility is not finding the source file. Could you post your makefile and .dev file? And state which directory these are in? And am I correct in understanding that you have main.cpp saved in "C:\Dev-Cpp\"?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Skill Endorsements: 38