Alexander Hall wrote:
Jeffrey R. Meyer wrote:
Hello all,
I have a recently built openBSD 3.8 machine and I wanted to be able to
do some simple c++ programming on it. I wrote the following
helloworld program:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!\n";
}
I installed the following packages:
g++-4.0-20050804
gcc-4.0-20050804
Just tried it myself. No problems whatsoever.
# vi helloworld.cpp
# c++ -o hello helloworld.cpp
# ./hello
Hello World!
#
You should not need to install any additional packages for this as long
as you installed the compiler (compXX.tgz) while installing. If you did
not do that then, do it now. "man tar" and "tar -xzvpf" are your friends.
/Alexander
Thanks for all the help. I did not install comp38.tgz, once installed
everything worked fine.
--Jeff