help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined reference error


From: Paul Pluzhnikov
Subject: Re: undefined reference error
Date: Wed, 30 Jan 2008 22:58:05 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

jaipal <jaipalreddy425@gmail.com> writes:

>  undefined reference to `std::basic_ostream<char,

Please read this:
 http://catb.org/esr/faqs/smart-questions.html

The most likely cause of your problem is that you are linking a C++
program with 'gcc'. Use 'g++' instead: they are not the same thing.

> I am getting these errors with gcc 4.2.2. I didnt get any errors with
> the previous versions

It was likely just your luck that it worked before.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]