Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: C++ problems and decimal bignum

40 views
Skip to first unread message

Paavo Helde

unread,
Oct 8, 2015, 1:32:18 AM10/8/15
to
arthur.r...@gmail.com wrote in
news:5256ed6a-f810-4d96...@googlegroups.com:

> I may be missing something obvious, but the following code compiles
> for me, but gives an unspecified linker error.

We are not chiromancers here, please include the error message.

> Decimal.hpp
>
> #ifndef DECIMAL_HPP
> #define DECIMAL_HPP
> #include <iostream> // for cout and cin [not yet implemented]
> #include <vector>
> class Decimal {
[...]
> friend ostream& operator<< (ostream& os, Decimal s) ;

Should be std::ostream, there is no using directive.

arthur.r...@gmail.com

unread,
Oct 8, 2015, 7:30:03 AM10/8/15
to
On Wednesday, October 7, 2015 at 10:32:18 PM UTC-7, Paavo Helde wrote:
> arthur.r...@gmail.com wrote in
> news:5256ed6a-f810-4d96...@googlegroups.com:
>
> > I may be missing something obvious, but the following code compiles
> > for me, but gives an unspecified linker error.
>
> We are not chiromancers here, please include the error message.

The message really was "link error". It appears that there was a mismatch of characteristics like "const" between a function declaration and implementation, which led a misspelled unresolved external. But the message didn't say that.

I attempted to delete the post, and it's deleted on Google groups, but no one else accepts a cancel.

--
Arthur Rubin

Öö Tiib

unread,
Oct 8, 2015, 10:08:17 AM10/8/15
to
Google just deletes a post from its Usenet client. Usenet is over decade
older than web, Google can't delete anything from it.

Vir Campestris

unread,
Oct 9, 2015, 4:19:26 PM10/9/15
to
On 08/10/2015 12:29, arthur.r...@gmail.com wrote:
> The message really was "link error".

That seems unlikely. I'll believe it _started_ link error

> It appears that there was a mismatch of characteristics like "const" between a function declaration and implementation, which led a misspelled unresolved external. But the message didn't say that.

... and some of those words followed it. Next time copy-paste the text.

Andy
0 new messages