LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-13-2004, 06:55 AM   #1
ashwinipahuja
Member
 
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
Ashwini
 
Old 05-15-2004, 01:50 AM   #2
agoatley
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:

a.out

which can be executed like any other program.

-Ashton
 
  


Reply


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


All times are GMT -5. The time now is 12:04 PM.

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