Welcome! Log In Create A New Profile

Advanced

Help

Posted by KKKat 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Help
March 09, 2008 06:05PM
Please help
I cant believe it I cant even get the first program to work.
the complier cant even get past line 2. It must be a setting error and probably so easy but I just cant figure it out
Error message
Line 2 D:\unisa\devcpp\COS211\2 unable to run program file.

anyone help??
Please
Re: Help
March 10, 2008 07:55AM
Sorry, Not doing this subject, but if you post some code etc. someone might be able to see whats happening.
Good Luck Test thumbs up smiley
Re: Help
March 10, 2008 11:38AM
Hi
The program wont even compile with the standard template without source code.
Does not matter what source code I put
Re: Help
March 10, 2008 03:26PM
Did you follow the installation instructions carefully?
Which OS is you using (XP / Vista)?
Did you complete COS111 already?
avatar Re: Help
March 10, 2008 11:57PM
Like Riaan said, give us more info?

Is this your PC?

What is the program that you want to run?

Did you set the include,lib and make directories?
Re: Help
March 11, 2008 01:38PM
Hi

I am running XP OS on my PC at home. I installed all files on my D drive. I have uninstalled and reinstalled just to make sure.
Followed instructions to the T. Have done all troubleshooting suggested on the CD.
Completed COS111 - a while back...
Ok I open Bloodshed C++ and follow the instructions are make a Console application and then a standard template appears something like
<#include iostream>
using namespace std;
int main ()
{ return 0;}

If try to compile with this I get the message
Line 2 D:\unisa\devcpp\COS211\2 unable to run program file.

Even when I add a line

<#include iostream>
using namespace std;
int main ()
{ cout<< "Hello World!" << endl;
return 0;}


I still get the same message. If I understand correctly the compiler is not getting past line 2. It has to be a setting or something I am jsut overlooking.

Thanks
avatar Re: Help
March 11, 2008 03:04PM
You made a mistake with the first line!

It should be: #include <iostream>
and not <#include iostream>

Fix that and the program should compile.smileys with beer
Re: Help
March 11, 2008 05:50PM
I don't think so, The IDE create's that code, so she just retyped it incorrectly...

Kat, I think you
Quote

Followed instructions to the T
and choose to ignore it. lol

Try changing the make program to "mingw32-make.exe"
Tools | Compiler Options | Programs
Re: Help
March 12, 2008 07:59PM
Hi guys

I am pleased you guys are getting a laugh out of this.
But I am still getting the same error
The compiler options is set as mingw32-make.exe
Is my code - I typed the previous code from memory

#include <iostream>

using namespace std;

int main()/* main function heading */
{
cout << "Hello world!" << endl;
/* Display message on */
return 0; /* the screen */
}


If no one else is getting an error like this, it has to be a setting on my computer. But what?????
Re: Help
March 12, 2008 11:46PM
Does All the paths in the Compiler Options point to D:\... and not C:\...
since you installed the programs on D: and not C:

The error you're getting means Dev-C++ can't find the "compiler" program to run it...

Ps.
If you don't come right now, I'm gonna stop laughing and start crying smile
Re: Help
March 13, 2008 01:54PM
Hi

I think maybe my computer should meet you.
I moved everything to C: drive last night and still no success
I checked previous years forums and installed programs from Disk 2006, great that error went away but then I got 2 other rather strange errors. Something about main().. cant remember.

Hey if you feel like crying, imagine I cant even get this to work..... hot smiley
Re: Help
March 13, 2008 04:29PM
drinking smiley I'm going out for a beer, cheers.
avatar Re: Help
March 27, 2008 08:21AM
Hi.

Install the program directly off the root.
ie: c:\devcpp or d:\devcpp

Do not use the default install path. This can cause some strange problems, because of the spaces in the program path.

I am using wx-devcpp.

Regards
Re: Help
May 05, 2008 11:50PM
Hi KKKat:

-------------------------------------------------------
> Error message
> Line 2 D:\unisa\devcpp\COS211\2 unable to run
> program file.

I saw a similar error when I tried using the bloodshed IDE, I had to set the path for output binaries to fix the problem.
This option can be found under Tools > Compiler Options > |Directories (tab)| > |Binaries (tab)|
Sorry, only registered users may post in this forum.

Click here to login