What happened?

Glenn Puchtel gpuchtel____gplicity.com
Fri Jun 6 12:53:32 CEST 2003


Are you compiling "release" or "debug"?  

A function defined in the body of a class declaration is an (implicit)
inline function.

I suspect that if you are compiling debug it might work because I
believe functions are not inline'd for debugging purposes.  In this case
the body of the operator is defined in address.cpp.  If you are
compiling release it may be assuming the body of the function already
exists, which it doesn't at the point the <= operator is being compiled.

Not sure if this helps, just an observation.  Like your friend, I have
no problem compiling using VC++7.0 and we have an earlier version of the
Agent++ libraries compiling using VC++ 6.0 and it does not demonstrate
these compilation errors.

My suspicions are that it is an inline issue in some form.  I might try
to update our VC++ 6.0 projects with the latest library code and see if
I can duplicate this problem.  Problem with that is time and I will have
to update the VC++ 6.0 project files with any new modules added to the
Agent++ libraries. 

Best Regards and good luck,
Glenn Puchtel



-----Original Message-----
From: Robert [mailto:luoxianlu____huawei.com] 
Sent: Monday, June 05, 2000 9:07 PM
To: Jochen Katz
Cc: agent pp
Subject: Re: What happened?

Hi, Jochen

Yes, I am using VC 6.0 on Win2000.
And there is no problem when another friend using VC 7.0.

So, is it impossible for VC 6.0 to correct these errors?
I can not change the compiler for some correlative reason.

Regards&thanks,
Robert

> > After modify them according to your mail,  other two errors come
out:
> > 
> > snmp++\include\address.h(180) : error C2678: binary '>' : no
operator defined which takes a left-hand operand of type 'const class
Address' (or there is no acceptable conversion)
> > snmp++\include\address.h(187) : error C2678: binary '<' : no
operator defined which takes a left-hand operand of type 'const class
Address' (or there is no acceptable conversion)
> > 
> > So, is there conflict of  operators?
> 
> it is the same thing as with oid.h: some inline functions cause an
error 
> for _your_ compiler/settings. Are you using VC++ 6.0 or an earlier 
> version? Do you have a different system to test?
> 
> Regards,
>    Jochen
> 
> 
> 
> 




More information about the AGENTPP mailing list