Mail Archives: djgpp/1997/08/02/16:47:28
Stephen Lohning wrote:
>
> Does any body know what I am doing wrong,
> I get undefined reference to cout and ostream
> I presume that I am missing a env variable some where
> Any help would be appreciated
>
> Thanks
>
> #include <iostream.h>
> void main(int argc, char **argv )
> {
> cout << "Hello world! \n";
> }
Assuming that you have installed all of the neccesary components for
C++, then you need to link the C++ libraries. (The readme.1st file has
information on this). Simply link with gxx instead of gcc.
-Chris Frolik
frolikcc AT indy DOT net
- Raw text -