This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can't link iostream library


On Mon, 22 Nov 1999, Tim Beauchamp wrote:

> #include<iostream.h>
> 
> void main()
> {           
>     cout << "Hello World\n";
> }
> 
> When I compile, I get unresolved externals for the cout and <<

% gcc hello.c++ -o hello++ -lstdc++
%


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]