Hi,

I have a guess, not sure though that it will work:

in the header try modifying


class TimeStamp
{   
   
public:
    // Default constructor.
    TimeStamp() throw();

    // Destructor.
    ~TimeStamp() throw();

    // Copy constructor.
    TimeStamp(const TimeStamp& rhs) throw();

    // ( HERE IS WHERE THE SCOPE PROBLEM HAPPENS IN 4.6.2 but not in
    // 3.4.5)
    // Equality operator.
    friend bool operator==(const TimeStamp& a, const TimeStamp& b) throw();
to
    friend bool AppGlobal::operator==(const TimeStamp& a, const TimeStamp& b) throw();

Sincerely,
Adam.

2012/6/9 Rom Albuquerque <a_romolo@hotmail.com>



Thanks for the input. However, The problem persists.

--Rom


----------------------------------------
> Date: Fri, 8 Jun 2012 16:19:56 -0400
> From: earnie@users.sourceforge.net
> To: mingw-users@lists.sourceforge.net
> Subject: Re: [Mingw-users] Scope resolution problems with NAMESPACES on g++ 4.6.2
>
> On Fri, Jun 8, 2012 at 2:36 PM, Rom Albuquerque wrote:
> >  Hi folks, I've upgraded my g++ version from 3.4.5 to 4.6.2 and now
> >  code that was building just fine with 3.4.5. no longer builds with
> >  4.6.2. In particularly, a scope resolution problem related to
> >  friend functions when the class it is a friend of is actually defined
> >  inside a namespace. This is the main case that is causing the build
> >  to fail at this point. The sample sources include below reproduce
> >  this problem quite well.
> >
> >  Any input is welcome. Your response is greatly appreciated.
>
> Just a guess. I assume you need to move the ``using namespace std''
> or add it additionally within the AppGlobal namespace. I don't C++
> that often so this message could be meaningless.
>
> --
> Earnie
> -- https://sites.google.com/site/earnieboyd
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe



--

Juhász Ádám

jadam1212@gmail.com
0036-30-2614731