🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #57638

Re: gcc and C++

#57638
From: Kent Tong
Date: Tue, 10 Sep 1996 00:00
21 lines
1204 bytes
hgriggs@mpx.com.au (Henry Griggs) wrote:

>I'm trying to link a C++ program using gcc 2.7.0, but without much
>success. It's a fairly simple program, just using cin and cout. It
>compiles okay, but when it tries to link it, I get errors like
>"undefined reference to `cout'" and "undefined reference to
>`ostream::operator<<(int)'".

>It compiles but won't link, so I suspect that I'm not supplying
>correct switches for the linker to find the C++ libraries. Can anyone
>help with this? Can anyone give me some good general tips on how to
>use the compiler/linker for C++ programming? Also, are there any
>documents I can read about it, any reference books, any info?

Are you using g++ instead of gcc?


---
Kent Tong
Freeman Installer ==> http://www.netnet.net/users/freeman/
Technical Details
Message-ID: <512lfc$767@metro.ucc.su.OZ.AU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <5129ic$8o4@inferno.mpx.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,81880698613b68f0
X-Google-Attributes: gid102983,public
From: freemant@wr.com.au (Kent Tong)
Subject: Re: gcc and C++
Date: 1996/09/10
Message-ID: <512lfc$767@metro.ucc.su.OZ.AU>
X-Deja-AN: 179594788
distribution: inet
references: <5129ic$8o4@inferno.mpx.com.au>
organization: TipTec Development
newsgroups: aus.computers.linux