Date: Sun, 30 Jun 2002 05:14:22 -0400 From: "Ciro Maeitta" <geminidomino@earthlink.net> To: "James" <effdefender@earthlink.net>, "Freebsd-questions" <Freebsd-questions@freebsd.org> Subject: Re: Compiling and executing a simple program Message-ID: <000e01c22016$8b139180$9865fea9@asgardnet.org> References: <001201c22012$089b70a0$0301a8c0@sys.gtei.net>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "James" <effdefender@earthlink.net> To: "Freebsd-questions" <Freebsd-questions@freebsd.org> Sent: Sunday, June 30, 2002 0442h Subject: Compiling and executing a simple program > Ok, I got my FreeBSD system up and running. While I'm waiting for KDE to > finish installing from the ports collection, I decided to telnet into my > FreeBSD machine from my Windows '98 machine. > > I wrote a "hello world" program in C++ and tried to compile it and execute > it. > Just to make sure I was doing everything right, I telneted in to my school's > (well, ex-school's) server and did it there. I had no problems on the > school's server. > [snip] > $ g++ -o hw hw.cpp > $ hw > hw: not found > $ ls > HW hw hw.cpp hw1 > $ hw > hw: not found > $ Are you sure the directory you are in is in your path? Your prompt doesnt tell me where you are working from, but on a hunch, I would say try './hw' instead of just 'hw'. HTH -C To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000e01c22016$8b139180$9865fea9>