Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!swrinde!news.uh.edu!rosie.uh.edu!ttm58327 From: ttm58327@rosie.uh.edu (Man, Tony T) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Problem with g++ compiled program output Date: 17 Jan 1996 20:51 CST Organization: University of Houston Lines: 23 Distribution: world Message-ID: <17JAN199620510552@rosie.uh.edu> NNTP-Posting-Host: rosie.uh.edu News-Software: VAX/VMS VNEWS 1.41 I am new to freebsd 2.1. I tried to use g++ to compile the following program: #include <iostream.h> int main() { cout << "Hello\n"; } I have the source compiled and the generic program a.out is generated. I rename a.out to test. The followings are my problems: 1) when I type test at the prompt, no output "Hello" can be seen, it just give me another prompt, 2) when I recompile the program and name it test2 and then type test2 at the prompt sign, I receive a error message "Command not found" on the screen. The command I used to compile is g++ test.cc which test.cc is the name of the program. Does anybody know what is wrong? Do I need to set termainal type for output? Why do I get "Command not found" error? Thanks in advance.