New freebsd user here

Cordula's Web cpghost at cordula.ws
Mon Jan 19 09:34:37 PST 2004


> Hugh Krogh-Freeman wrote:
> > Hello everyone. I just installed Free BSD 5.1 on my computer. I know C++ and
>  > C, but I am not able to get C++ to compile yet because it doesn't recognize
>  > cout and endl (I wrote a simple "hello world" program). I assume it's because
>  > I am not including the right library.

You need -lstdc++

Or use c++ (instead of cc or gcc) which includes the
C++ Standard Library automatically.

-- 
Cordula's Web. http://www.cordula.ws/



More information about the freebsd-questions mailing list