public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Can't link iostream library
@ 1999-11-22 13:19 Tim Beauchamp
  1999-11-22 14:23 ` Matthew Majka
  1999-11-30 23:28 ` Tim Beauchamp
  0 siblings, 2 replies; 6+ messages in thread
From: Tim Beauchamp @ 1999-11-22 13:19 UTC (permalink / raw)
  To: help-gcc

For the life of me I can not link with the iostream library
on best.  I am sure that it is my ignorance but I can not find
the solution in the documentation or any of the FAQs

Even if I make a simple program like

#include<iostream.h>

void main()
{           
    cout << "Hello World\n";
}

When I compile, I get unresolved externals for the cout and <<

Anyone know what I am doing wrong?
       
--
Virtually,

Tim Beauchamp
timb@googol.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't link iostream library
  1999-11-22 13:19 Can't link iostream library Tim Beauchamp
@ 1999-11-22 14:23 ` Matthew Majka
  1999-11-23  5:57   ` Tim Beauchamp
  1999-11-30 23:28   ` Matthew Majka
  1999-11-30 23:28 ` Tim Beauchamp
  1 sibling, 2 replies; 6+ messages in thread
From: Matthew Majka @ 1999-11-22 14:23 UTC (permalink / raw)
  To: help-gcc

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++
%

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't link iostream library
  1999-11-22 14:23 ` Matthew Majka
@ 1999-11-23  5:57   ` Tim Beauchamp
  1999-11-30 23:28     ` Tim Beauchamp
  1999-11-30 23:28   ` Matthew Majka
  1 sibling, 1 reply; 6+ messages in thread
From: Tim Beauchamp @ 1999-11-23  5:57 UTC (permalink / raw)
  To: help-gcc

That was it.  Thanks very much.

--
--
Virtually,

Tim Beauchamp
timb@googol.com
Matthew Majka <mmajka@cs5.dasd.honeywell.com> wrote in message
news: Pine.SGI.4.02.9911221517001.96082-100000@schuylkill.dasd.honeywell.com .
..
> 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++
> %
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Can't link iostream library
  1999-11-22 13:19 Can't link iostream library Tim Beauchamp
  1999-11-22 14:23 ` Matthew Majka
@ 1999-11-30 23:28 ` Tim Beauchamp
  1 sibling, 0 replies; 6+ messages in thread
From: Tim Beauchamp @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

For the life of me I can not link with the iostream library
on best.  I am sure that it is my ignorance but I can not find
the solution in the documentation or any of the FAQs

Even if I make a simple program like

#include<iostream.h>

void main()
{           
    cout << "Hello World\n";
}

When I compile, I get unresolved externals for the cout and <<

Anyone know what I am doing wrong?
       
--
Virtually,

Tim Beauchamp
timb@googol.com



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't link iostream library
  1999-11-23  5:57   ` Tim Beauchamp
@ 1999-11-30 23:28     ` Tim Beauchamp
  0 siblings, 0 replies; 6+ messages in thread
From: Tim Beauchamp @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

That was it.  Thanks very much.

--
--
Virtually,

Tim Beauchamp
timb@googol.com
Matthew Majka <mmajka@cs5.dasd.honeywell.com> wrote in message
news: Pine.SGI.4.02.9911221517001.96082-100000@schuylkill.dasd.honeywell.com .
..
> 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++
> %
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can't link iostream library
  1999-11-22 14:23 ` Matthew Majka
  1999-11-23  5:57   ` Tim Beauchamp
@ 1999-11-30 23:28   ` Matthew Majka
  1 sibling, 0 replies; 6+ messages in thread
From: Matthew Majka @ 1999-11-30 23:28 UTC (permalink / raw)
  To: help-gcc

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++
%

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-11-30 23:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-22 13:19 Can't link iostream library Tim Beauchamp
1999-11-22 14:23 ` Matthew Majka
1999-11-23  5:57   ` Tim Beauchamp
1999-11-30 23:28     ` Tim Beauchamp
1999-11-30 23:28   ` Matthew Majka
1999-11-30 23:28 ` Tim Beauchamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).