|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (7 bit)
Join Date: Sep 2002
Posts: 93
|
I am doing a little refresher self-study of C++ before school starts on Friday.
I just successfully compiled my program and renamed the output to "orc." I am not sure if that was an important file I over-wrote, or if there is something else I am doing, because if I type "orc," at the command prompt it gives me the error that the command cannot be found. bash: orc: command cannot be found Or something to that effect. I even tried renaming the output to other names and nothing works. I even compiled and let it name the file the default name "a.out" and that doesn't run either. This is my exact syntax... g++ orc.cpp -o orc I have been able to run the program using gdb. Any and all help or suggestions much appreciated. I am still pretty green to Linux so it might be a simple problem. And just to be clear I am working in the same directory the entire time. |
|
|
|
|
|
#2 |
|
Member (9 bit)
|
you must type ./orc for it to work. orc implies it is a registered system command. HTH
|
|
|
|
|
|
#3 |
|
Member (7 bit)
Join Date: Sep 2002
Posts: 93
|
OK, I will give that a try.
Maybe it's been a while but when I was programming in c, I simply had to type the name, but that makes sense! Thanks for your help!! |
|
|
|
|
|
#4 |
|
Member (7 bit)
Join Date: Sep 2002
Posts: 93
|
Just to follow up, your suggestion worked! Thank you very much! =)
|
|
|
|
|
|
#5 | |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Quote:
In DOS, no need for the ./ |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|