LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 12: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



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 11:34 AM
how to run command in two ttys of same computer at the same time? pwangee Linux - Networking 2 07-16-2004 01:17 PM
how to run command in two ttys of same computer at the same time? pwangee Linux - General 1 07-15-2004 01:29 PM
eroaster-2.0.12 run-time error cpv204 Linux - Software 5 04-04-2004 07:13 PM
The code cause a run time error Linh Programming 9 07-11-2003 08:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:02 AM.

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
Open Source Consulting | Domain Registration