Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-13-2004, 06:55 AM   #1
Registered: Mar 2004
Posts: 79

Rep: Reputation: 15
Exclamation Run Time Error- CLS command not found

i am getting error during the execution of the cpp file
sh: line 1: CLS command not found
this is given in the stderr header in the console window . how to remove it
If anybody has some idea then please reply.
Thanx in advance
Old 05-15-2004, 01:50 AM   #2
LQ Newbie
Registered: May 2004
Distribution: Slackware 9.1
Posts: 16

Rep: Reputation: 0
Cool Solution?

I think your problem is that .cpp files are meant to be compiled, not interpreted by a shell. Perhaps you might like to try:

g++ somefile.cpp

replacing somefile.cpp with your file, of course.

That should produce a file called:


which can be executed like any other program.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows command cls on Linux ? utw-mephisto Linux - General 10 12-02-2009 12:34 PM
how to run command in two ttys of same computer at the same time? pwangee Linux - Networking 2 07-16-2004 02:17 PM
how to run command in two ttys of same computer at the same time? pwangee Linux - General 1 07-15-2004 02:29 PM
eroaster-2.0.12 run-time error cpv204 Linux - Software 5 04-04-2004 08:13 PM
The code cause a run time error Linh Programming 9 07-11-2003 09:17 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration